Struct Rfc3339
pub struct Rfc3339(/* private fields */);
Expand description
Helper struct to serialize and deserialize Timestamp into an RFC3339-compatible string
This is required because the serde with
attribute is only available to fields of a struct but
not the whole struct.
Trait Implementations§
§impl<'de> Deserialize<'de> for Rfc3339
impl<'de> Deserialize<'de> for Rfc3339
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rfc3339, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rfc3339, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Rfc3339
impl Serialize for Rfc3339
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Rfc3339
impl RefUnwindSafe for Rfc3339
impl Send for Rfc3339
impl Sync for Rfc3339
impl Unpin for Rfc3339
impl UnwindSafe for Rfc3339
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more