By implementing the Index trait on Document, users can use square brackets to retrieve values like a Python dictionary. This is a familiar syntax from other BSON libraries and may be easier to read than the various getters we provide currently.
e.g.
let d = doc! { "x": 1 }; let value: Option<&Bson> = d["x"];