Function qm_mongodb::bson::serde_helpers::timestamp_as_u32::serialize
source · pub fn serialize<S>(
val: &Timestamp,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,Expand description
Serializes a bson::Timestamp as a u32. Returns an error if the conversion is lossy (i.e. the Timestamp has a non-zero increment).