pub struct DeserializeAsWrap<T, U> { /* private fields */ }
Expand description
Helper type to implement DeserializeAs
for container-like types.
Implementations§
Source§impl<T, U> DeserializeAsWrap<T, U>
impl<T, U> DeserializeAsWrap<T, U>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Return the inner value of type T
.
Trait Implementations§
Source§impl<'de, T, U> Deserialize<'de> for DeserializeAsWrap<T, U>where
U: DeserializeAs<'de, T>,
impl<'de, T, U> Deserialize<'de> for DeserializeAsWrap<T, U>where
U: DeserializeAs<'de, T>,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T, U> Freeze for DeserializeAsWrap<T, U>where
T: Freeze,
impl<T, U> RefUnwindSafe for DeserializeAsWrap<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for DeserializeAsWrap<T, U>
impl<T, U> Sync for DeserializeAsWrap<T, U>
impl<T, U> Unpin for DeserializeAsWrap<T, U>
impl<T, U> UnwindSafe for DeserializeAsWrap<T, U>where
T: UnwindSafe,
U: 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