Struct serde_tagged::de::DeserializeWithTag
[−]
[src]
pub struct DeserializeWithTag<T, V> { /* fields omitted */ }
A DeserializeSeed
implementation that returns the pair of wrapped tag and
deserialized value of known type.
Methods
impl<T, V> DeserializeWithTag<T, V>
[src]
pub fn new(tag: T) -> Self
[src]
Creates a new DeserializeSeed
implementation that returns the pair of
given tag and deserialized value.
Trait Implementations
impl<'de, T, V> DeserializeSeed<'de> for DeserializeWithTag<T, V> where
V: Deserialize<'de>,
[src]
V: Deserialize<'de>,
type Value = (T, V)
The type produced by using this seed.
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Equivalent to the more common Deserialize::deserialize
method, except with some initial piece of data (the seed) passed in. Read more
Auto Trait Implementations
impl<T, V> Send for DeserializeWithTag<T, V> where
T: Send,
V: Send,
T: Send,
V: Send,
impl<T, V> Sync for DeserializeWithTag<T, V> where
T: Sync,
V: Sync,
T: Sync,
V: Sync,