pub enum FormatCondition {
Show 20 variants
NumberBetween(f64, f64),
NumberNotBetween(f64, f64),
NumberGreater(f64),
NumberGreaterEq(f64),
NumberLess(f64),
NumberLessEq(f64),
NumberEq(f64),
NumberNotEq(f64),
TextContains(String),
TextNotContains(String),
TextStartsWith(String),
TextEndsWith(String),
TextEq(String),
DateAfter(DateValue),
DateBefore(DateValue),
DateOn(DateValue),
DateBetween(String, String),
CellEmpty,
CellNotEmpty,
CustomFormula(String),
}Expand description
The condition shapes a BooleanRule can trigger on.
See the module doc’s “curated condition/rule surface” paragraph for how
this differs from validation::Condition.
Variants§
NumberBetween(f64, f64)
A number in [min, max] inclusive.
NumberNotBetween(f64, f64)
A number outside [min, max].
NumberGreater(f64)
A number strictly greater than this.
NumberGreaterEq(f64)
A number greater than or equal to this.
NumberLess(f64)
A number strictly less than this.
NumberLessEq(f64)
A number less than or equal to this.
NumberEq(f64)
A number equal to this.
NumberNotEq(f64)
A number not equal to this.
TextContains(String)
Text containing this substring.
TextNotContains(String)
Text not containing this substring.
TextStartsWith(String)
Text starting with this substring.
TextEndsWith(String)
Text ending with this substring.
TextEq(String)
Text equal to this.
DateAfter(DateValue)
A date after this one.
DateBefore(DateValue)
A date before this one.
DateOn(DateValue)
A date equal to this one.
DateBetween(String, String)
A date in [start, end] inclusive (absolute dates only).
CellEmpty
The cell is empty.
CellNotEmpty
The cell is not empty.
CustomFormula(String)
A custom formula that must evaluate truthy.
Trait Implementations§
Source§impl Clone for FormatCondition
impl Clone for FormatCondition
Source§impl Debug for FormatCondition
impl Debug for FormatCondition
Source§impl PartialEq for FormatCondition
impl PartialEq for FormatCondition
impl StructuralPartialEq for FormatCondition
Auto Trait Implementations§
impl Freeze for FormatCondition
impl RefUnwindSafe for FormatCondition
impl Send for FormatCondition
impl Sync for FormatCondition
impl Unpin for FormatCondition
impl UnsafeUnpin for FormatCondition
impl UnwindSafe for FormatCondition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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