pub struct De<T>(/* private fields */);
Expand description
A wrapper type which implements Deserialize
for types involving
Duration
.
It can only be constructed through its Deserialize
implementations.
Implementations§
Source§impl<T> De<T>
impl<T> De<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the De
, returning the inner value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for De<Duration>
impl<'de> Deserialize<'de> for De<Duration>
Source§fn deserialize<D>(d: D) -> Result<De<Duration>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<De<Duration>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for De<T>where
T: Freeze,
impl<T> RefUnwindSafe for De<T>where
T: RefUnwindSafe,
impl<T> Send for De<T>where
T: Send,
impl<T> Sync for De<T>where
T: Sync,
impl<T> Unpin for De<T>where
T: Unpin,
impl<T> UnwindSafe for De<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