Expand description

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.

#[derive(Serialize, Deserialize)]
struct Event {
    #[serde(with = "bson_datetime_as_rfc3339_string")]
    pub date: bson::DateTime,
}

Functions