pub enum Operator<Ctx: ?Sized> {
Equal(Value<'static>),
LessThan(Value<'static>),
LessThanOrEqual(Value<'static>),
GreaterThan(Value<'static>),
GreaterThanOrEqual(Value<'static>),
InSet(HashSet<Value<'static>>),
Regex(Regex),
RegexSet(RegexSet),
IpSet(IpnetTrie<()>),
Custom(Box<CheckFn<Ctx>>),
CustomAsync(Box<AsyncCheckFn<Ctx>>),
}
Expand description
Represents an operator that used to check if a fetched value satisfies the condition.
Variants§
Equal(Value<'static>)
LessThan(Value<'static>)
LessThanOrEqual(Value<'static>)
GreaterThan(Value<'static>)
GreaterThanOrEqual(Value<'static>)
InSet(HashSet<Value<'static>>)
Regex(Regex)
RegexSet(RegexSet)
IpSet(IpnetTrie<()>)
Custom(Box<CheckFn<Ctx>>)
CustomAsync(Box<AsyncCheckFn<Ctx>>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Ctx> !Freeze for Operator<Ctx>
impl<Ctx> !RefUnwindSafe for Operator<Ctx>
impl<Ctx> !Send for Operator<Ctx>
impl<Ctx> !Sync for Operator<Ctx>
impl<Ctx> Unpin for Operator<Ctx>where
Ctx: ?Sized,
impl<Ctx> !UnwindSafe for Operator<Ctx>
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