Function serde_tagged::de::adj::map::deserialize
source · pub fn deserialize<'de, 'k, T, K, Kc: ?Sized, D, F>(
deserializer: D,
tag_key: &'k Kc,
value_key: &'k Kc,
seed_factory: F,
) -> Result<F::Value, D::Error>where
T: Deserialize<'de>,
D: Deserializer<'de>,
F: SeedFactory<'de, T>,
K: Deserialize<'de> + PartialEq<&'k Kc>,
Expand description
Deserialize a map-based adjacently tagged value.
The deserializer controls the underlying data format while the seed-factory specifies the instructions (depending on the tag) on how the value should be deserialized.
See de
for more information on
SeedFactory
and implementations thereof.
See deserialize_seed
for a version that allows you to
pass a DeserializeSeed
implementation to deserialize the tag. This version
is equivalent to deserialize_seed(deserializer, seed_factory, PhantomData<T>)
§Note
If you do not need to choose a specific deserialization-method based on the
tag, you should prefer deserialize_known
to this
method.