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>
as its Unix timestamp with nanoseconds