Struct duration_serde::Wrap
source · pub struct Wrap<T>(/* private fields */);
Expand description
A wrapper type which implements Serialize
and Deserialize
for
Duration
Trait Implementations§
source§impl<'de> Deserialize<'de> for Wrap<Duration>
impl<'de> Deserialize<'de> for Wrap<Duration>
source§fn deserialize<D>(d: D) -> Result<Wrap<Duration>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Wrap<Duration>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> Deserialize<'de> for Wrap<Option<Duration>>
impl<'de> Deserialize<'de> for Wrap<Option<Duration>>
source§fn deserialize<D>(d: D) -> Result<Wrap<Option<Duration>>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Wrap<Option<Duration>>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Copy> Copy for Wrap<T>
impl<T: Eq> Eq for Wrap<T>
impl<T> StructuralPartialEq for Wrap<T>
Auto Trait Implementations§
impl<T> Freeze for Wrap<T>where
T: Freeze,
impl<T> RefUnwindSafe for Wrap<T>where
T: RefUnwindSafe,
impl<T> Send for Wrap<T>where
T: Send,
impl<T> Sync for Wrap<T>where
T: Sync,
impl<T> Unpin for Wrap<T>where
T: Unpin,
impl<T> UnwindSafe for Wrap<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)