Skip to main content

non_empty

Function non_empty 

Source
pub fn non_empty(value: Option<&str>) -> Option<&str>
Expand description

Trims a query/payload string and turns a now-empty result into None, so “not provided” and “provided as whitespace” filter the same way.