#[repr(i32)]pub enum ProtoOaExecutionType {
OrderAccepted = 2,
OrderFilled = 3,
OrderReplaced = 4,
OrderCancelled = 5,
OrderExpired = 6,
OrderRejected = 7,
OrderCancelRejected = 8,
Swap = 9,
DepositWithdraw = 10,
OrderPartialFill = 11,
BonusDepositWithdraw = 12,
}Expand description
- Execution event type ENUM.
Variants§
OrderAccepted = 2
Order passed validation.
OrderFilled = 3
Order filled.
OrderReplaced = 4
Pending order is changed with a new one.
OrderCancelled = 5
Order cancelled.
OrderExpired = 6
Order with GTD time in force is expired.
OrderRejected = 7
Order is rejected due to validations.
OrderCancelRejected = 8
Cancel order request is rejected.
Swap = 9
Type related to SWAP execution events.
DepositWithdraw = 10
Type related to event of deposit or withdrawal cash flow operation.
OrderPartialFill = 11
Order is partially filled.
BonusDepositWithdraw = 12
Type related to event of bonus deposit or bonus withdrawal.
Implementations§
Source§impl ProtoOaExecutionType
impl ProtoOaExecutionType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ProtoOaExecutionType.
Sourcepub fn from_i32(value: i32) -> Option<ProtoOaExecutionType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ProtoOaExecutionType>
Converts an i32 to a ProtoOaExecutionType, or None if value is not a valid variant.
Source§impl ProtoOaExecutionType
impl ProtoOaExecutionType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ProtoOaExecutionType
impl Clone for ProtoOaExecutionType
Source§fn clone(&self) -> ProtoOaExecutionType
fn clone(&self) -> ProtoOaExecutionType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtoOaExecutionType
impl Debug for ProtoOaExecutionType
Source§impl Default for ProtoOaExecutionType
impl Default for ProtoOaExecutionType
Source§fn default() -> ProtoOaExecutionType
fn default() -> ProtoOaExecutionType
Source§impl<'de> Deserialize<'de> for ProtoOaExecutionType
impl<'de> Deserialize<'de> for ProtoOaExecutionType
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>,
Source§impl From<ProtoOaExecutionType> for i32
impl From<ProtoOaExecutionType> for i32
Source§fn from(value: ProtoOaExecutionType) -> i32
fn from(value: ProtoOaExecutionType) -> i32
Source§impl Hash for ProtoOaExecutionType
impl Hash for ProtoOaExecutionType
Source§impl Ord for ProtoOaExecutionType
impl Ord for ProtoOaExecutionType
Source§fn cmp(&self, other: &ProtoOaExecutionType) -> Ordering
fn cmp(&self, other: &ProtoOaExecutionType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ProtoOaExecutionType
impl PartialEq for ProtoOaExecutionType
Source§impl PartialOrd for ProtoOaExecutionType
impl PartialOrd for ProtoOaExecutionType
Source§impl Serialize for ProtoOaExecutionType
impl Serialize for ProtoOaExecutionType
Source§impl TryFrom<i32> for ProtoOaExecutionType
impl TryFrom<i32> for ProtoOaExecutionType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ProtoOaExecutionType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtoOaExecutionType, UnknownEnumValue>
impl Copy for ProtoOaExecutionType
impl Eq for ProtoOaExecutionType
impl StructuralPartialEq for ProtoOaExecutionType
Auto Trait Implementations§
impl Freeze for ProtoOaExecutionType
impl RefUnwindSafe for ProtoOaExecutionType
impl Send for ProtoOaExecutionType
impl Sync for ProtoOaExecutionType
impl Unpin for ProtoOaExecutionType
impl UnwindSafe for ProtoOaExecutionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.