Skip to main content

flag

Function flag 

Source
pub(crate) fn flag(value: Option<&str>) -> bool
Expand description

Reads a boolean query parameter.

Present-and-not-false is true, so ?excludeIdentity on its own works the way somebody typing it expects. Anything unrecognisable reads as false, which is the safe direction for a delivery filter: the consumer is sent more than it asked for rather than less.