pub trait SerializeFilter<T: ?Sized> {
    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§

Returns whether the specified field should be skipped.

Returns the number of fields which will be serialized given the total field count.

Implementations on Foreign Types§

Implementors§