pub enum SecPredicate {
Eq {
field: String,
value: SecValue,
},
In {
field: String,
values: Vec<SecValue>,
},
Range {
field: String,
lo: Option<SecValue>,
hi: Option<SecValue>,
lo_inclusive: bool,
hi_inclusive: bool,
},
}Expand description
An indexable predicate over a single filterable field, answered through the secondary index.
Variants§
Eq
The field equals value.
In
The field equals one of values.
Range
The field falls within the (optionally open) bounds.
Implementations§
Trait Implementations§
Source§impl Clone for SecPredicate
impl Clone for SecPredicate
Source§fn clone(&self) -> SecPredicate
fn clone(&self) -> SecPredicate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecPredicate
impl Debug for SecPredicate
Source§impl PartialEq for SecPredicate
impl PartialEq for SecPredicate
Source§fn eq(&self, other: &SecPredicate) -> bool
fn eq(&self, other: &SecPredicate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecPredicate
Auto Trait Implementations§
impl Freeze for SecPredicate
impl RefUnwindSafe for SecPredicate
impl Send for SecPredicate
impl Sync for SecPredicate
impl Unpin for SecPredicate
impl UnsafeUnpin for SecPredicate
impl UnwindSafe for SecPredicate
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