Filters.Filter (filters v0.1.0)
Struct used to recevive responses from HTTP servers
Link to this section Summary
Types
Use this to filter out data past the date expressed in the filter value.
Use this to filter out data exceeding the date expressed in the filter value.
Expresses a date formatted as "yyyy-mm-dd"
Use this for exact matching across a list of well known (and limited amount of) items.
Matches any sub token at any point in the string value, E.g. "The white rabbit" data matches "te rab" text filter value
Link to this section Types
date_from()
@type date_from() :: :date_from
Use this to filter out data past the date expressed in the filter value.
date_to()
@type date_to() :: :date_to
Use this to filter out data exceeding the date expressed in the filter value.
date_value()
@type date_value() :: String.t()
Expresses a date formatted as "yyyy-mm-dd"
enum()
@type enum() :: :enum
Use this for exact matching across a list of well known (and limited amount of) items.
filter_type()
key()
@type t() :: %Filters.Filter{ filter_type: filter_type(), key: key(), value: value_type() }
text()
@type text() :: :text
Matches any sub token at any point in the string value, E.g. "The white rabbit" data matches "te rab" text filter value
value_type()
@type value_type() :: String.t() | date_value()