nt_time::serde_with::unix_time::milliseconds::option

Function serialize

Source
pub fn serialize<S: Serializer>(
    ft: &Option<FileTime>,
    serializer: S,
) -> Result<S::Ok, S::Error>
Available on crate feature serde only.
Expand description

Serializes an Option<FileTime> into the given Serde serializer.

This serializes using Unix time in milliseconds.