pub fn from_slice<'de, T>(bytes: &'de [u8]) -> Result<T> where
    T: Deserialize<'de>, 
Expand description

Deserialize an instance of type T from a slice of BSON bytes.