pub enum Condition {
And {
and: Vec<Condition>,
},
Or {
or: Vec<Condition>,
},
Not {
not: Box<Condition>,
},
AtLeast {
should_minimum_meet: usize,
conditions: Vec<Condition>,
},
Condition {
field: String,
constraint: Constraint,
path: Option<String>,
},
}
Variants
Implementations
sourceimpl Condition
impl Condition
sourcepub fn check_value(&self, info: &Value) -> ConditionResult
pub fn check_value(&self, info: &Value) -> ConditionResult
Starting at this node, recursively check (depth-first) any child nodes and aggregate the results
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more