Struct serde_tagged::de::DeserializeWithTag
source · pub struct DeserializeWithTag<T, V> { /* private fields */ }
Expand description
A DeserializeSeed
implementation that returns the pair of wrapped tag and
deserialized value of known type.
Implementations§
source§impl<T, V> DeserializeWithTag<T, V>
impl<T, V> DeserializeWithTag<T, V>
Trait Implementations§
source§impl<'de, T, V> DeserializeSeed<'de> for DeserializeWithTag<T, V>where
V: Deserialize<'de>,
impl<'de, T, V> DeserializeSeed<'de> for DeserializeWithTag<T, V>where
V: Deserialize<'de>,
source§fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
Equivalent to the more common
Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in.Auto Trait Implementations§
impl<T, V> Freeze for DeserializeWithTag<T, V>where
T: Freeze,
impl<T, V> RefUnwindSafe for DeserializeWithTag<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for DeserializeWithTag<T, V>
impl<T, V> Sync for DeserializeWithTag<T, V>
impl<T, V> Unpin for DeserializeWithTag<T, V>
impl<T, V> UnwindSafe for DeserializeWithTag<T, V>where
T: UnwindSafe,
V: 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