pub enum Predicate {
Any(Vec<Box<Predicate>>),
All(Vec<Box<Predicate>>),
Not(Box<Predicate>),
Name(String),
NameValue(String, String),
}
Expand description
A configuration predicate.
Variants§
Any(Vec<Box<Predicate>>)
A configuration predicate success when any
of sub-predicates success.
All(Vec<Box<Predicate>>)
A configuration predicate success when all
of sub-predicates success.
Not(Box<Predicate>)
A configuration predicate apply not
operator to a predicate.
Name(String)
A configuration predicate with name.
NameValue(String, String)
A configuration predicate with name and value.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnwindSafe for Predicate
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