Function serialize
pub fn serialize<S>(
value: &Duration,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Expand description
Serialize from Duration into string
pub fn serialize<S>(
value: &Duration,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize from Duration into string