pavex::time::serde::rfc2822::option

Function serialize

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

Serialize an Option<OffsetDateTime> using the well-known RFC2822 format.