pub trait SerializeIgnoredFields {
type Key: ?Sized + Serialize;
type Value: ?Sized + Serialize;
// Required methods
fn len(&self) -> usize;
fn iter(&self) -> impl Iterator<Item = (&Self::Key, &Self::Value)>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Trait for types that can be used to re-serialize ignored fields.
Required Associated Types§
Required Methods§
Provided 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 SerializeIgnoredFields for Map<String, Value>
Available on crate feature serde_json only.
impl SerializeIgnoredFields for Map<String, Value>
Available on crate feature
serde_json only.Source§impl SerializeIgnoredFields for Mapping
Available on crate feature serde_yaml only.
impl SerializeIgnoredFields for Mapping
Available on crate feature
serde_yaml only.Source§impl SerializeIgnoredFields for Mapping
Available on crate feature serde_yml only.
impl SerializeIgnoredFields for Mapping
Available on crate feature
serde_yml only.Source§impl SerializeIgnoredFields for Table
Available on crate feature serde_toml only.
impl SerializeIgnoredFields for Table
Available on crate feature
serde_toml only.