#[repr(i32)]pub enum OrderOriginScope {
ORDER_ORIGIN_SCOPE_UNSPECIFIED = 0,
DIRECT = 1,
ATTACHED_RISK = 2,
STANDALONE_TRIGGER = 3,
SYSTEM = 4,
}Expand description
OrderOriginScope captures broad origin classes for an order.
Variants§
ORDER_ORIGIN_SCOPE_UNSPECIFIED = 0
Order origin scope was not provided.
DIRECT = 1
User/manual order (non-trigger path).
ATTACHED_RISK = 2
Child generated by attached TP/SL/Trailing risk on a parent order.
STANDALONE_TRIGGER = 3
Child generated by a standalone trigger (STOP/TWAP/LADDER…).
SYSTEM = 4
System-managed automation, such as liquidation or account-protection actions.
Implementations§
Source§impl OrderOriginScope
impl OrderOriginScope
Sourcepub const OrderOriginScopeUnspecified: Self = Self::ORDER_ORIGIN_SCOPE_UNSPECIFIED
pub const OrderOriginScopeUnspecified: Self = Self::ORDER_ORIGIN_SCOPE_UNSPECIFIED
Idiomatic alias for Self::ORDER_ORIGIN_SCOPE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Direct: Self = Self::DIRECT
pub const Direct: Self = Self::DIRECT
Idiomatic alias for Self::DIRECT; Debug prints the variant name.
Sourcepub const AttachedRisk: Self = Self::ATTACHED_RISK
pub const AttachedRisk: Self = Self::ATTACHED_RISK
Idiomatic alias for Self::ATTACHED_RISK; Debug prints the variant name.
Sourcepub const StandaloneTrigger: Self = Self::STANDALONE_TRIGGER
pub const StandaloneTrigger: Self = Self::STANDALONE_TRIGGER
Idiomatic alias for Self::STANDALONE_TRIGGER; Debug prints the variant name.
Sourcepub const System: Self = Self::SYSTEM
pub const System: Self = Self::SYSTEM
Idiomatic alias for Self::SYSTEM; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for OrderOriginScope
impl Clone for OrderOriginScope
Source§fn clone(&self) -> OrderOriginScope
fn clone(&self) -> OrderOriginScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OrderOriginScope
Source§impl Debug for OrderOriginScope
impl Debug for OrderOriginScope
Source§impl Default for OrderOriginScope
impl Default for OrderOriginScope
Source§impl<'de> Deserialize<'de> for OrderOriginScope
impl<'de> Deserialize<'de> for OrderOriginScope
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for OrderOriginScope
impl Enumeration for OrderOriginScope
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for OrderOriginScope
Source§impl Hash for OrderOriginScope
impl Hash for OrderOriginScope
Source§impl PartialEq for OrderOriginScope
impl PartialEq for OrderOriginScope
Source§impl ProtoElemJson for OrderOriginScope
impl ProtoElemJson for OrderOriginScope
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for OrderOriginScope
impl Serialize for OrderOriginScope
impl StructuralPartialEq for OrderOriginScope
Auto Trait Implementations§
impl Freeze for OrderOriginScope
impl RefUnwindSafe for OrderOriginScope
impl Send for OrderOriginScope
impl Sync for OrderOriginScope
impl Unpin for OrderOriginScope
impl UnsafeUnpin for OrderOriginScope
impl UnwindSafe for OrderOriginScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.