Macro bson::doc

source ยท
macro_rules! doc {
    () => { ... };
    ( $($tt:tt)+ ) => { ... };
}
Expand description

Construct a bson::Document value.

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