pub struct Filter {
pub field: Option<String>,
pub key: Option<String>,
pub value: Option<String>,
pub hours_ago: Option<String>,
pub radius: Option<f32>,
pub lat: Option<f32>,
pub long: Option<f32>,
pub relation: Option<RelationType>,
}Fields§
§field: Option<String>Required. Name of the field to use as the first operand in the filter expression.
key: Option<String>If field is tag, this field is required to specify key inside the tags.
value: Option<String>Constant value to use as the second operand in the filter expression. This value is required when the relation operator is a binary operator.
hours_ago: Option<String>If field is session-related, this is required to specify the number of hours before or after the user’s session.
radius: Option<f32>If field is location, this will specify the radius in meters from a provided location point. Use with lat and long.
lat: Option<f32>If field is location, this is required to specify the user’s latitude.
long: Option<f32>If field is location, this is required to specify the user’s longitude.
relation: Option<RelationType>Required. Operator of a filter expression.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Filter
impl<'de> Deserialize<'de> for Filter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more