Skip to main content

serialize

Function serialize 

Source
pub fn serialize<S>(
    date: &Option<DateTime<Utc>>,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Writes Some as in super::serialize and None as null.

§Errors

Only the errors of the serializer.