pub fn is_default<T: Default + PartialEq>(t: &T) -> bool
Intended to be used for skipping serialization if the value is the default.
#[serde(skip_serializing_if = "is_default")]