Skip to main content

serialize

Function serialize 

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

Serialize an optional OffsetDateTime to an RFC 7231 date and time string.