pub trait DeserializeIgnoredFields<'de>: Default + Debug {
type Key: Deserialize<'de>;
type Value: Deserialize<'de>;
// Required method
fn insert<E: Error>(
&mut self,
key: Self::Key,
value: Self::Value,
) -> Result<(), E>;
}Expand description
Trait for types that can collect ignored fields during deserialization.
Required Associated Types§
Sourcetype Key: Deserialize<'de>
type Key: Deserialize<'de>
The type of the key for the ignored fields.
Sourcetype Value: Deserialize<'de>
type Value: Deserialize<'de>
The type of the value of ignored fields.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<'de> DeserializeIgnoredFields<'de> for Map<String, Value>
Available on crate feature serde_json only.
impl<'de> DeserializeIgnoredFields<'de> for Map<String, Value>
Available on crate feature
serde_json only.Source§impl<'de> DeserializeIgnoredFields<'de> for Mapping
Available on crate feature serde_yaml only.
impl<'de> DeserializeIgnoredFields<'de> for Mapping
Available on crate feature
serde_yaml only.Source§impl<'de> DeserializeIgnoredFields<'de> for Mapping
Available on crate feature serde_yml only.
impl<'de> DeserializeIgnoredFields<'de> for Mapping
Available on crate feature
serde_yml only.Source§impl<'de> DeserializeIgnoredFields<'de> for Table
Available on crate feature serde_toml only.
impl<'de> DeserializeIgnoredFields<'de> for Table
Available on crate feature
serde_toml only.