pub enum ThresholdComparison {
GreaterThan,
GreaterThanOrEqual,
LessThan,
LessThanOrEqual,
Between,
}Expand description
Comparison operator for threshold mappings.
Variants§
GreaterThan
Amount must be greater than threshold
GreaterThanOrEqual
Amount must be greater than or equal to threshold
LessThan
Amount must be less than threshold
LessThanOrEqual
Amount must be less than or equal to threshold
Between
Amount must be between two thresholds
Trait Implementations§
Source§impl Clone for ThresholdComparison
impl Clone for ThresholdComparison
Source§fn clone(&self) -> ThresholdComparison
fn clone(&self) -> ThresholdComparison
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 ThresholdComparison
impl Debug for ThresholdComparison
Source§impl<'de> Deserialize<'de> for ThresholdComparison
impl<'de> Deserialize<'de> for ThresholdComparison
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 ThresholdComparison
impl PartialEq for ThresholdComparison
Source§impl Serialize for ThresholdComparison
impl Serialize for ThresholdComparison
impl Copy for ThresholdComparison
impl Eq for ThresholdComparison
impl StructuralPartialEq for ThresholdComparison
Auto Trait Implementations§
impl Freeze for ThresholdComparison
impl RefUnwindSafe for ThresholdComparison
impl Send for ThresholdComparison
impl Sync for ThresholdComparison
impl Unpin for ThresholdComparison
impl UnwindSafe for ThresholdComparison
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.