#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum Filter {
#[serde(rename="match-all")]
MatchAll {
},
#[serde(rename="match-all-conditions")]
MatchAllConditions {
#[serde(rename = "conditions", skip_serializing_if = "Option::is_none")]
conditions: Option<Vec<crate::models::Condition>>,
},
#[serde(rename="match-any-condition")]
MatchAnyCondition {
#[serde(rename = "conditions", skip_serializing_if = "Option::is_none")]
conditions: Option<Vec<crate::models::Condition>>,
},
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "match-all")]
All,
#[serde(rename = "match-any-condition")]
AnyCondition,
#[serde(rename = "match-all-conditions")]
AllConditions,
}