pub struct FieldCondition {
pub date_range: Option<Option<Box<DateRange>>>,
pub field: String,
pub geo_bounding_box: Option<Option<Box<LocationBoundingBox>>>,
pub geo_polygon: Option<Option<Box<LocationPolygon>>>,
pub geo_radius: Option<Option<Box<LocationRadius>>>,
pub match_all: Option<Option<Vec<MatchCondition>>>,
pub match_any: Option<Option<Vec<MatchCondition>>>,
pub range: Option<Option<Box<Range>>>,
}
Fields§
§date_range: Option<Option<Box<DateRange>>>
§field: String
Field is the name of the field to filter on. The field value will be used to check for an exact substring match on the metadata values for each existing chunk. This is useful for when you want to filter chunks by arbitrary metadata. To access fields inside of the metadata that you provide with the card, prefix the field name with metadata.
.
geo_bounding_box: Option<Option<Box<LocationBoundingBox>>>
§geo_polygon: Option<Option<Box<LocationPolygon>>>
§geo_radius: Option<Option<Box<LocationRadius>>>
§match_all: Option<Option<Vec<MatchCondition>>>
Match all lets you pass in an array of values that will return results if all of the items match. The match value will be used to check for an exact substring match on the metadata values for each existing chunk. If both match_all and match_any are provided, the match_any condition will be used.
match_any: Option<Option<Vec<MatchCondition>>>
Match any lets you pass in an array of values that will return results if any of the items match. The match value will be used to check for an exact substring match on the metadata values for each existing chunk. If both match_all and match_any are provided, the match_any condition will be used.
range: Option<Option<Box<Range>>>
Implementations§
Source§impl FieldCondition
impl FieldCondition
pub fn new(field: String) -> FieldCondition
Trait Implementations§
Source§impl Clone for FieldCondition
impl Clone for FieldCondition
Source§fn clone(&self) -> FieldCondition
fn clone(&self) -> FieldCondition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more