Skip to main content

parse_filter_token

Function parse_filter_token 

Source
pub fn parse_filter_token(s: &str) -> Result<FieldCondition>
Expand description

Parses a CLI FIELD:OP:VALUE token into a FieldCondition.

Splits on the first two : characters. Value is parsed as f64, then JSON, else a string.

ยงErrors

Returns TvscreenerError::InvalidRequest when the token shape or operator is invalid.