oasgen_core

Function is_false

Source
pub const fn is_false(v: &bool) -> bool
Expand description

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, }