pub enum CompareMethod {
StringEq,
IsOrIsNot,
ExtendedString,
Number,
}Variants§
StringEq
Old-fashioned string compare.
Renders as “is equal”.
IsOrIsNot
Lets the user chose != or ==.
Renders as a dropdown with the options “is equal to” and “is NOT equal to”
ExtendedString
Lets the user make more complicated string comparisons.
Renders as a dropdown with options like “contains”, “begins with”, “case insensitive compared”, etc.
Number
Lets the user make numeric comparisons on the operator.
Renders a dropdown that has < and > in addition to equal and not equal.
Trait Implementations§
Source§impl Clone for CompareMethod
impl Clone for CompareMethod
Source§fn clone(&self) -> CompareMethod
fn clone(&self) -> CompareMethod
Returns a duplicate of the value. Read more
1.0.0 · 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 CompareMethod
impl Debug for CompareMethod
Source§impl Default for CompareMethod
impl Default for CompareMethod
Source§fn default() -> CompareMethod
fn default() -> CompareMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompareMethod
impl<'de> Deserialize<'de> for CompareMethod
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
Auto Trait Implementations§
impl Freeze for CompareMethod
impl RefUnwindSafe for CompareMethod
impl Send for CompareMethod
impl Sync for CompareMethod
impl Unpin for CompareMethod
impl UnwindSafe for CompareMethod
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