#[repr(u8)]pub enum TriggerDirection {
GreaterThanOrEqual = 0,
LessThanOrEqual = 1,
}Variants§
Implementations§
Trait Implementations§
Source§impl AsRef<str> for TriggerDirection
impl AsRef<str> for TriggerDirection
Source§impl BorshDeserialize for TriggerDirection
impl BorshDeserialize for TriggerDirection
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for TriggerDirection
impl BorshSerialize for TriggerDirection
Source§impl Clone for TriggerDirection
impl Clone for TriggerDirection
Source§fn clone(&self) -> TriggerDirection
fn clone(&self) -> TriggerDirection
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 TriggerDirection
impl Debug for TriggerDirection
Source§impl<'de> Deserialize<'de> for TriggerDirection
impl<'de> Deserialize<'de> for TriggerDirection
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 Display for TriggerDirection
impl Display for TriggerDirection
Source§impl EnumExt for TriggerDirection
impl EnumExt for TriggerDirection
Source§impl<'_enum> From<&'_enum TriggerDirection> for TriggerDirectionDiscriminants
impl<'_enum> From<&'_enum TriggerDirection> for TriggerDirectionDiscriminants
Source§fn from(val: &'_enum TriggerDirection) -> TriggerDirectionDiscriminants
fn from(val: &'_enum TriggerDirection) -> TriggerDirectionDiscriminants
Converts to this type from the input type.
Source§impl From<TriggerDirection> for TriggerDirectionDiscriminants
impl From<TriggerDirection> for TriggerDirectionDiscriminants
Source§fn from(val: TriggerDirection) -> TriggerDirectionDiscriminants
fn from(val: TriggerDirection) -> TriggerDirectionDiscriminants
Converts to this type from the input type.
Source§impl Hash for TriggerDirection
impl Hash for TriggerDirection
Source§impl IntoEnumIterator for TriggerDirection
impl IntoEnumIterator for TriggerDirection
type Iterator = TriggerDirectionIter
fn iter() -> TriggerDirectionIter ⓘ
Source§impl JsonSchema for TriggerDirection
impl JsonSchema for TriggerDirection
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for TriggerDirection
impl Ord for TriggerDirection
Source§fn cmp(&self, other: &TriggerDirection) -> Ordering
fn cmp(&self, other: &TriggerDirection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TriggerDirection
impl PartialEq for TriggerDirection
Source§impl PartialOrd for TriggerDirection
impl PartialOrd for TriggerDirection
Source§impl Serialize for TriggerDirection
impl Serialize for TriggerDirection
impl Copy for TriggerDirection
impl Eq for TriggerDirection
impl StructuralPartialEq for TriggerDirection
Auto Trait Implementations§
impl Freeze for TriggerDirection
impl RefUnwindSafe for TriggerDirection
impl Send for TriggerDirection
impl Sync for TriggerDirection
impl Unpin for TriggerDirection
impl UnsafeUnpin for TriggerDirection
impl UnwindSafe for TriggerDirection
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