serialize_to_vec

Function serialize_to_vec 

Source
pub fn serialize_to_vec<T>(value: &T) -> Result<Vec<u8>>
where T: Serialize,
Available on crate feature serde only.
Expand description

Serialize the given T as a BSON byte vector.