#[repr(i32)]pub enum OrderType {
ORDER_TYPE_UNSPECIFIED = 0,
LIMIT = 1,
MARKET = 2,
}Variants§
ORDER_TYPE_UNSPECIFIED = 0
Order type was not provided.
LIMIT = 1
Limit order with an explicit price.
MARKET = 2
Market order executed against available liquidity.
Implementations§
Source§impl OrderType
impl OrderType
Sourcepub const OrderTypeUnspecified: Self = Self::ORDER_TYPE_UNSPECIFIED
pub const OrderTypeUnspecified: Self = Self::ORDER_TYPE_UNSPECIFIED
Idiomatic alias for Self::ORDER_TYPE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Limit: Self = Self::LIMIT
pub const Limit: Self = Self::LIMIT
Idiomatic alias for Self::LIMIT; Debug prints the variant name.
Sourcepub const Market: Self = Self::MARKET
pub const Market: Self = Self::MARKET
Idiomatic alias for Self::MARKET; Debug prints the variant name.
Trait Implementations§
impl Copy for OrderType
Source§impl<'de> Deserialize<'de> for OrderType
impl<'de> Deserialize<'de> for OrderType
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 OrderType
impl Enumeration for OrderType
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 OrderType
Source§impl ProtoElemJson for OrderType
impl ProtoElemJson for OrderType
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.
impl StructuralPartialEq for OrderType
Auto Trait Implementations§
impl Freeze for OrderType
impl RefUnwindSafe for OrderType
impl Send for OrderType
impl Sync for OrderType
impl Unpin for OrderType
impl UnsafeUnpin for OrderType
impl UnwindSafe for OrderType
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.