pub trait SerializeFilter<T: ?Sized> {
// Required methods
fn skip(&self, field: Field<'_, T>) -> bool;
fn filtered_len(&self, len: Option<usize>) -> Option<usize>;
}Expand description
Trait implemented by types which can be used to filter the serializable fields of another type.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".