pub enum Predicate {
MinCount {
attribute: String,
count: usize,
},
MinDistinct {
attribute: String,
count: usize,
},
None {
attribute: String,
},
Any {
attribute: String,
},
All {
attribute: String,
},
And(Vec<Predicate>),
Or(Vec<Predicate>),
Not(Box<Predicate>),
}Expand description
A predicate over signer attributes.
Variants§
MinCount
At least count signers must have attribute.
MinDistinct
At least count distinct values of attribute must appear.
None
No signer has attribute.
Any
At least one signer has attribute.
All
All signers have attribute.
And(Vec<Predicate>)
Conjunction of sub-predicates.
Or(Vec<Predicate>)
Disjunction of sub-predicates.
Not(Box<Predicate>)
Negation of a sub-predicate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin 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