Expand description

Collection of helper functions for serializing to and deserializing from BSON using Serde

Modules§

  • Contains functions to serialize a crate::DateTime as an RFC 3339 (ISO 8601) formatted string and deserialize a crate::DateTime from an RFC 3339 (ISO 8601) formatted string.
  • Contains functions to serialize a hex string as an ObjectId and deserialize a hex string from an ObjectId
  • Contains functions to serialize a i64 integer as DateTime and deserialize a i64 integer from DateTime.
  • Contains functions to serialize an RFC 3339 (ISO 8601) formatted string as a crate::DateTime and deserialize an RFC 3339 (ISO 8601) formatted string from a crate::DateTime.
  • Contains functions to serialize a bson::Timestamp as a u32 and deserialize a bson::Timestamp from a u32. The u32 should represent seconds since the Unix epoch. Serialization will return an error if the Timestamp has a non-zero increment.
  • Contains functions to serialize a u32 as an f64 (BSON double) and deserialize a u32 from an f64 (BSON double).
  • Contains functions to serialize a u32 as a bson::Timestamp and deserialize a u32 from a bson::Timestamp. The u32 should represent seconds since the Unix epoch.
  • Contains functions to serialize a u64 as an f64 (BSON double) and deserialize a u64 from an f64 (BSON double).

Functions§