Function parse

Source
pub fn parse(filter_string: &str) -> Option<Vec<Filter<'_>>>
Expand description

Parses a filter string into a list of Filters.

The function splits the filter string by “ AND “ to get a list of filter parts. Each part is further split into field, operator, and value. The field and value can optionally have a multiplier and be prefixed with a multiplier followed by “*”. The value can also be a reference to a field if it starts with “.”.

§Arguments

  • filter_string - The string representation of filters to parse.

§Returns

  • Option<Vec<Filter>> - Returns a list of Filters if the parsing is successful, otherwise returns None.