pub const fn is_false(v: &bool) -> bool
Use this as a serde skip_serializing_if attribute to skip serializing false values: struct Foo { #[serde(default, skip_serializing_if = “is_false”)] pub my_optional_property: bool, }
false