pub trait TimeReprwhere
Self: Sized,{
// Required methods
fn serialize<S>(
date: &Date<Self>,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer;
fn deserialize<'de, D>(
deserializer: D,
) -> Result<Date<Self>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>;
}
Required Methods§
fn serialize<S>(
date: &Date<Self>,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn deserialize<'de, D>(
deserializer: D,
) -> Result<Date<Self>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.