#[repr(u8)]pub enum TriggerPriceCondition {
Mark = 0,
Oracle = 1,
LastTrade = 2,
}Variants§
Implementations§
Trait Implementations§
Source§impl AsRef<str> for TriggerPriceCondition
impl AsRef<str> for TriggerPriceCondition
Source§impl BorshDeserialize for TriggerPriceCondition
impl BorshDeserialize for TriggerPriceCondition
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 Clone for TriggerPriceCondition
impl Clone for TriggerPriceCondition
Source§fn clone(&self) -> TriggerPriceCondition
fn clone(&self) -> TriggerPriceCondition
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 TriggerPriceCondition
impl Debug for TriggerPriceCondition
Source§impl<'de> Deserialize<'de> for TriggerPriceCondition
impl<'de> Deserialize<'de> for TriggerPriceCondition
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 TriggerPriceCondition
impl Display for TriggerPriceCondition
Source§impl EnumExt for TriggerPriceCondition
impl EnumExt for TriggerPriceCondition
Source§impl<'_enum> From<&'_enum TriggerPriceCondition> for TriggerPriceConditionDiscriminants
impl<'_enum> From<&'_enum TriggerPriceCondition> for TriggerPriceConditionDiscriminants
Source§fn from(
val: &'_enum TriggerPriceCondition,
) -> TriggerPriceConditionDiscriminants
fn from( val: &'_enum TriggerPriceCondition, ) -> TriggerPriceConditionDiscriminants
Converts to this type from the input type.
Source§impl From<TriggerPriceCondition> for TriggerPriceConditionDiscriminants
impl From<TriggerPriceCondition> for TriggerPriceConditionDiscriminants
Source§fn from(val: TriggerPriceCondition) -> TriggerPriceConditionDiscriminants
fn from(val: TriggerPriceCondition) -> TriggerPriceConditionDiscriminants
Converts to this type from the input type.
Source§impl Hash for TriggerPriceCondition
impl Hash for TriggerPriceCondition
Source§impl JsonSchema for TriggerPriceCondition
impl JsonSchema for TriggerPriceCondition
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 TriggerPriceCondition
impl Ord for TriggerPriceCondition
Source§fn cmp(&self, other: &TriggerPriceCondition) -> Ordering
fn cmp(&self, other: &TriggerPriceCondition) -> 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 TriggerPriceCondition
impl PartialEq for TriggerPriceCondition
Source§impl PartialOrd for TriggerPriceCondition
impl PartialOrd for TriggerPriceCondition
Source§impl Serialize for TriggerPriceCondition
impl Serialize for TriggerPriceCondition
impl Copy for TriggerPriceCondition
impl Eq for TriggerPriceCondition
impl StructuralPartialEq for TriggerPriceCondition
Auto Trait Implementations§
impl Freeze for TriggerPriceCondition
impl RefUnwindSafe for TriggerPriceCondition
impl Send for TriggerPriceCondition
impl Sync for TriggerPriceCondition
impl Unpin for TriggerPriceCondition
impl UnsafeUnpin for TriggerPriceCondition
impl UnwindSafe for TriggerPriceCondition
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