pub trait DeserializeSeed<'de> {
    type Output;

    // Required method
    fn deserialize<D: Deserializer<'de>>(
        self,
        deserializer: D
    ) -> Result<Self::Output, D::Error>;
}
Expand description

DeserializeSeed is the stateful form of the Deserialize trait.

Required Associated Types§

source

type Output

The type produced by using this seed.

Required Methods§

source

fn deserialize<D: Deserializer<'de>>( self, deserializer: D ) -> Result<Self::Output, D::Error>

Equivalent to the more common Deserialize::deserialize associated function, except with some initial piece of data (the seed self) passed in.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'de, T: Deserialize<'de>> DeserializeSeed<'de> for PhantomData<T>

§

type Output = T

source§

fn deserialize<D: Deserializer<'de>>( self, deserializer: D ) -> Result<Self::Output, D::Error>

Implementors§