time::serde::timestamp::nanoseconds::option

Function serialize

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

Serialize an Option<OffsetDateTime> as its Unix timestamp with nanoseconds