pub enum InnerRuntimeCriterion {
Show 17 variants
Negated {
clause: Box<RuntimeCriterion>,
},
AnyOf {
clauses: Vec<MaybeEval<RuntimeCriterion>>,
},
AllOf {
clauses: Vec<MaybeEval<RuntimeCriterion>>,
},
ContainOnlynum {
sub: PrimitiveValue,
sup: Text,
found: Vec<Numeric>,
},
ContainNum {
sub: Numeric,
sup: Text,
found: Vec<Numeric>,
},
ContainText {
sub: PrimitiveValue,
sup: Text,
},
ContainWithGaps {
parts: Vec<PrimitiveValue>,
unevaluated_parts: usize,
sup: Text,
},
MatchesRegex {
pattern: Text,
sup: RuntimeValue,
},
GreaterThen {
left: PrimitiveValue,
right: PrimitiveValue,
},
LowerThen {
left: PrimitiveValue,
right: PrimitiveValue,
},
GreaterEqual {
left: PrimitiveValue,
right: PrimitiveValue,
},
LowerEqual {
left: PrimitiveValue,
right: PrimitiveValue,
},
NotEqual {
left: PrimitiveValue,
right: PrimitiveValue,
},
Equal {
left: PrimitiveValue,
right: PrimitiveValue,
},
Catch {
criterion: Box<RuntimeCriterion>,
error: cerr,
only_if: Option<Box<MaybeEval<RuntimeCriterion>>>,
default_value: Option<Box<MaybeEval<RuntimeCriterion>>>,
action: Option<MaybeEval<RuntimeAction>>,
},
IfThenElse {
if_: Box<RuntimeCriterion>,
selected_branch: Box<RuntimeCriterion>,
other_branch: Box<MaybeEval<RuntimeCriterion>>,
},
SpecialCrit {
variant: SpecialCritVariant,
},
}Variants§
Negated
Fields
§
clause: Box<RuntimeCriterion>AnyOf
Fields
§
clauses: Vec<MaybeEval<RuntimeCriterion>>AllOf
Fields
§
clauses: Vec<MaybeEval<RuntimeCriterion>>ContainOnlynum
ContainNum
ContainText
ContainWithGaps
MatchesRegex
GreaterThen
LowerThen
GreaterEqual
LowerEqual
NotEqual
Equal
Catch
Fields
§
criterion: Box<RuntimeCriterion>§
only_if: Option<Box<MaybeEval<RuntimeCriterion>>>§
default_value: Option<Box<MaybeEval<RuntimeCriterion>>>§
action: Option<MaybeEval<RuntimeAction>>IfThenElse
Fields
§
if_: Box<RuntimeCriterion>§
selected_branch: Box<RuntimeCriterion>§
other_branch: Box<MaybeEval<RuntimeCriterion>>SpecialCrit
Fields
§
variant: SpecialCritVariantImplementations§
Source§impl InnerRuntimeCriterion
impl InnerRuntimeCriterion
pub fn build( self, is_fulfilled: bool, failure_explaination: Option<Text>, ) -> RuntimeCriterion
pub fn build_fulfilled(self) -> RuntimeCriterion
pub fn build_unfulfilled( self, failure_explaination: Option<Text>, ) -> RuntimeCriterion
Trait Implementations§
Source§impl Clone for InnerRuntimeCriterion
impl Clone for InnerRuntimeCriterion
Source§fn clone(&self) -> InnerRuntimeCriterion
fn clone(&self) -> InnerRuntimeCriterion
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 InnerRuntimeCriterion
impl Debug for InnerRuntimeCriterion
Source§impl<'de> Deserialize<'de> for InnerRuntimeCriterion
impl<'de> Deserialize<'de> for InnerRuntimeCriterion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InnerRuntimeCriterion
impl PartialEq for InnerRuntimeCriterion
Source§fn eq(&self, other: &InnerRuntimeCriterion) -> bool
fn eq(&self, other: &InnerRuntimeCriterion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InnerRuntimeCriterion
impl PartialOrd for InnerRuntimeCriterion
Source§impl Serialize for InnerRuntimeCriterion
impl Serialize for InnerRuntimeCriterion
impl StructuralPartialEq for InnerRuntimeCriterion
Auto Trait Implementations§
impl Freeze for InnerRuntimeCriterion
impl RefUnwindSafe for InnerRuntimeCriterion
impl Send for InnerRuntimeCriterion
impl Sync for InnerRuntimeCriterion
impl Unpin for InnerRuntimeCriterion
impl UnsafeUnpin for InnerRuntimeCriterion
impl UnwindSafe for InnerRuntimeCriterion
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more