Struct serde_tagged::de::WithoutTag
source · pub struct WithoutTag<V> { /* private fields */ }
Expand description
A SeedFactory
implementation that can be used to discard
the tag during deserialization.
This implementation creates a seed which deserializes a tagged value with known type and discards the tag.
This is equivalent to the SeedFactory
implementation
provided for PhantomData
and has been added for consistency and
clarification.
Implementations§
source§impl<V> WithoutTag<V>
impl<V> WithoutTag<V>
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SeedFactory
implementation that
deserializes a tagged value with known type and discards its tag.
Trait Implementations§
source§impl<V> Default for WithoutTag<V>
impl<V> Default for WithoutTag<V>
source§impl<'de, T, V> SeedFactory<'de, T> for WithoutTag<V>where
V: Deserialize<'de>,
impl<'de, T, V> SeedFactory<'de, T> for WithoutTag<V>where
V: Deserialize<'de>,
Auto Trait Implementations§
impl<V> Freeze for WithoutTag<V>
impl<V> RefUnwindSafe for WithoutTag<V>where
V: RefUnwindSafe,
impl<V> Send for WithoutTag<V>where
V: Send,
impl<V> Sync for WithoutTag<V>where
V: Sync,
impl<V> Unpin for WithoutTag<V>where
V: Unpin,
impl<V> UnwindSafe for WithoutTag<V>where
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