time::serde::rfc2822::option

Function serialize

Source
pub fn serialize<S: Serializer>(
    option: &Option<OffsetDateTime>,
    serializer: S,
) -> Result<S::Ok, S::Error>
Available on crate feature serde and (crate features formatting or parsing) and crate feature formatting only.
Expand description

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