pub enum Operand {
String(String),
Signed(i64),
Unsigned(u64),
Float(f64),
Date(Date),
DateTime(OffsetDateTime),
}Expand description
A typed operand for use in an Condition.
According to the Tendermint RPC subscribe docs, an operand can be a string, number, date or time. We differentiate here between integer and floating point numbers.
Variants§
Trait Implementations§
Source§impl From<OffsetDateTime> for Operand
impl From<OffsetDateTime> for Operand
Source§fn from(source: OffsetDateTime) -> Self
fn from(source: OffsetDateTime) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Operand
Auto Trait Implementations§
impl Freeze for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnwindSafe for Operand
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