Skip to main content

is_default

Function is_default 

Source
pub fn is_default<T: Default + PartialEq>(value: &T) -> bool
Expand description

Whether a value is its own zero — the suppression predicate every field’s skip_serializing_if names, so “anything at its default is omitted” is one rule rather than one per field type.