[][src]Macro bson::doc

macro_rules! doc {
    () => { ... };
    ( $($tt:tt)+ ) => { ... };
}

Construct a bson::Document value.

let value = doc! {
    "code": 200,
    "success": true,
    "payload": {
      "some": [
          "pay",
          "loads",
      ]
    }
};