pub enum StringPredicate {
Equals(String),
Contains(String),
StartsWith(String),
EndsWith(String),
LessThan(String),
}Expand description
Predicate for string/text fields.
Variants§
Equals(String)
Field equals value (exact match)
Contains(String)
Field contains value (substring match)
StartsWith(String)
Field starts with value
EndsWith(String)
Field ends with value
LessThan(String)
Field is lexicographically less than value (e.g. RFC3339 expire-at vs now)
Trait Implementations§
Source§impl Clone for StringPredicate
impl Clone for StringPredicate
Auto Trait Implementations§
impl Freeze for StringPredicate
impl RefUnwindSafe for StringPredicate
impl Send for StringPredicate
impl Sync for StringPredicate
impl Unpin for StringPredicate
impl UnsafeUnpin for StringPredicate
impl UnwindSafe for StringPredicate
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