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