pub enum CodeRequirementMatchExpression<'a> {
Show 15 variants
Exists,
Equal(CodeRequirementValue<'a>),
Contains(CodeRequirementValue<'a>),
BeginsWith(CodeRequirementValue<'a>),
EndsWith(CodeRequirementValue<'a>),
LessThan(CodeRequirementValue<'a>),
GreaterThan(CodeRequirementValue<'a>),
LessThanEqual(CodeRequirementValue<'a>),
GreaterThanEqual(CodeRequirementValue<'a>),
On(DateTime<Utc>),
Before(DateTime<Utc>),
After(DateTime<Utc>),
OnOrBefore(DateTime<Utc>),
OnOrAfter(DateTime<Utc>),
Absent,
}Expand description
An instance of a match expression in a CodeRequirementExpression.
Variants
Exists
Entity exists.
exists
No payload.
Equal(CodeRequirementValue<'a>)
Equality.
= <value>
4 bytes length, raw data.
Contains(CodeRequirementValue<'a>)
Contains.
~ <value>
4 bytes length, raw data.
BeginsWith(CodeRequirementValue<'a>)
Begins with.
= <value>*
4 bytes length, raw data.
EndsWith(CodeRequirementValue<'a>)
Ends with.
= *<value>
4 bytes length, raw data.
LessThan(CodeRequirementValue<'a>)
Less than.
< <value>
4 bytes length, raw data.
GreaterThan(CodeRequirementValue<'a>)
Greater than.
> <value>
LessThanEqual(CodeRequirementValue<'a>)
Less than or equal to.
<= <value>
4 bytes length, raw data.
GreaterThanEqual(CodeRequirementValue<'a>)
Greater than or equal to.
>= <value>
4 bytes length, raw data.
On(DateTime<Utc>)
Timestamp value equivalent.
= timestamp "<timestamp>"
Before(DateTime<Utc>)
Timestamp value before.
< timestamp "<timestamp>"
After(DateTime<Utc>)
Timestamp value after.
> timestamp "<timestamp>"
OnOrBefore(DateTime<Utc>)
Timestamp value equivalent or before.
<= timestamp "<timestamp>"
OnOrAfter(DateTime<Utc>)
Timestamp value equivalent or after.
>= timestamp "<timestamp>"
Absent
Value is absent.
<empty>
No payload.
Implementations
sourceimpl<'a> CodeRequirementMatchExpression<'a>
impl<'a> CodeRequirementMatchExpression<'a>
Trait Implementations
sourceimpl<'a> Clone for CodeRequirementMatchExpression<'a>
impl<'a> Clone for CodeRequirementMatchExpression<'a>
sourcefn clone(&self) -> CodeRequirementMatchExpression<'a>
fn clone(&self) -> CodeRequirementMatchExpression<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for CodeRequirementMatchExpression<'a>
impl<'a> Debug for CodeRequirementMatchExpression<'a>
sourceimpl<'a> Display for CodeRequirementMatchExpression<'a>
impl<'a> Display for CodeRequirementMatchExpression<'a>
sourceimpl<'a> PartialEq<CodeRequirementMatchExpression<'a>> for CodeRequirementMatchExpression<'a>
impl<'a> PartialEq<CodeRequirementMatchExpression<'a>> for CodeRequirementMatchExpression<'a>
sourcefn eq(&self, other: &CodeRequirementMatchExpression<'a>) -> bool
fn eq(&self, other: &CodeRequirementMatchExpression<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CodeRequirementMatchExpression<'a>) -> bool
fn ne(&self, other: &CodeRequirementMatchExpression<'a>) -> bool
This method tests for !=.
impl<'a> StructuralPartialEq for CodeRequirementMatchExpression<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CodeRequirementMatchExpression<'a>
impl<'a> Send for CodeRequirementMatchExpression<'a>
impl<'a> Sync for CodeRequirementMatchExpression<'a>
impl<'a> Unpin for CodeRequirementMatchExpression<'a>
impl<'a> UnwindSafe for CodeRequirementMatchExpression<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more