Skip to main content

is_false

Function is_false 

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

Helper for skip_serializing_if = "is_false" on truncated fields above. Serde calls skip_serializing_if with &T, so the reference signature is dictated by the trait and cannot be changed to pass-by-value. Uses #[allow] rather than #[expect] per .claude/rules/code-quality.md: trivially_copy_pass_by_ref is a pedantic lint that fires inconsistently across build configurations (lib vs bin), which would trigger unfulfilled_lint_expectations under #[expect].