Struct onesignal_rust_api::models::filter::Filter
source · pub struct Filter {
pub field: String,
pub key: Option<String>,
pub value: Option<String>,
pub relation: RelationType,
}
Fields§
§field: String
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.
relation: RelationType
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