pavex::time::serde::iso8601

Function serialize

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

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