pub enum Condition {
Kind(u64),
CreatedBefore(u64),
CreatedAfter(u64),
}
Expand description
A condition from the delegation conditions.
Variants§
Kind(u64)
Event kind, e.g. kind=1
CreatedBefore(u64)
Creation time before, e.g. created_at<1679000000
CreatedAfter(u64)
Creation time after, e.g. created_at>1676000000
Trait Implementations§
source§impl Ord for Condition
impl Ord for Condition
source§impl PartialEq<Condition> for Condition
impl PartialEq<Condition> for Condition
source§impl PartialOrd<Condition> for Condition
impl PartialOrd<Condition> for Condition
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Condition
impl Eq for Condition
impl StructuralEq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.