Trait spacetimedb_sats::de::DeserializeSeed
source · 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§
Required Methods§
sourcefn deserialize<D: Deserializer<'de>>(
self,
deserializer: D
) -> Result<Self::Output, D::Error>
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.