time::serde::iso8601

Function serialize

source
pub fn serialize<S: Serializer>(
    datetime: &OffsetDateTime,
    serializer: S,
) -> Result<S::Ok, S::Error>
Expand description

Serialize an OffsetDateTime using the well-known ISO 8601 format.