Function serde_tagged::de::adj::struc::deserialize_seed
source · pub fn deserialize_seed<'de, D, F, S>(
deserializer: D,
name: &'static str,
tag_key: &'static str,
value_key: &'static str,
seed_factory: F,
tag_seed: S,
) -> Result<F::Value, D::Error>
Expand description
Deserialize a struct-based adjacently tagged value using the given tag-seed.
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.
name
is the name with which the struct that will be serialized.
See de
for more information on
SeedFactory
and implementations thereof.
§Note
If you do not need to choose a specific deserialization-method based on the
tag, you should prefer deserialize_known_seed
to
this method.