#[repr(i32)]pub enum SelfTradePreventionMode {
SELF_TRADE_PREVENTION_MODE_UNSPECIFIED = 0,
EXPIRE_MAKER = 1,
EXPIRE_TAKER = 2,
EXPIRE_BOTH = 3,
}Variants§
SELF_TRADE_PREVENTION_MODE_UNSPECIFIED = 0
Self-trade prevention mode was not provided; create requests default to EXPIRE_MAKER.
EXPIRE_MAKER = 1
Cancel the resting maker order on self-trade.
EXPIRE_TAKER = 2
Cancel the incoming taker order on self-trade.
EXPIRE_BOTH = 3
Cancel both maker and taker orders on self-trade.
Implementations§
Source§impl SelfTradePreventionMode
impl SelfTradePreventionMode
Sourcepub const SelfTradePreventionModeUnspecified: Self = Self::SELF_TRADE_PREVENTION_MODE_UNSPECIFIED
pub const SelfTradePreventionModeUnspecified: Self = Self::SELF_TRADE_PREVENTION_MODE_UNSPECIFIED
Idiomatic alias for Self::SELF_TRADE_PREVENTION_MODE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const ExpireMaker: Self = Self::EXPIRE_MAKER
pub const ExpireMaker: Self = Self::EXPIRE_MAKER
Idiomatic alias for Self::EXPIRE_MAKER; Debug prints the variant name.
Sourcepub const ExpireTaker: Self = Self::EXPIRE_TAKER
pub const ExpireTaker: Self = Self::EXPIRE_TAKER
Idiomatic alias for Self::EXPIRE_TAKER; Debug prints the variant name.
Sourcepub const ExpireBoth: Self = Self::EXPIRE_BOTH
pub const ExpireBoth: Self = Self::EXPIRE_BOTH
Idiomatic alias for Self::EXPIRE_BOTH; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for SelfTradePreventionMode
impl Clone for SelfTradePreventionMode
Source§fn clone(&self) -> SelfTradePreventionMode
fn clone(&self) -> SelfTradePreventionMode
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 SelfTradePreventionMode
Source§impl Debug for SelfTradePreventionMode
impl Debug for SelfTradePreventionMode
Source§impl Default for SelfTradePreventionMode
impl Default for SelfTradePreventionMode
Source§impl<'de> Deserialize<'de> for SelfTradePreventionMode
impl<'de> Deserialize<'de> for SelfTradePreventionMode
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 SelfTradePreventionMode
impl Enumeration for SelfTradePreventionMode
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 SelfTradePreventionMode
Source§impl Hash for SelfTradePreventionMode
impl Hash for SelfTradePreventionMode
Source§impl PartialEq for SelfTradePreventionMode
impl PartialEq for SelfTradePreventionMode
Source§impl ProtoElemJson for SelfTradePreventionMode
impl ProtoElemJson for SelfTradePreventionMode
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 SelfTradePreventionMode
impl Serialize for SelfTradePreventionMode
impl StructuralPartialEq for SelfTradePreventionMode
Auto Trait Implementations§
impl Freeze for SelfTradePreventionMode
impl RefUnwindSafe for SelfTradePreventionMode
impl Send for SelfTradePreventionMode
impl Sync for SelfTradePreventionMode
impl Unpin for SelfTradePreventionMode
impl UnsafeUnpin for SelfTradePreventionMode
impl UnwindSafe for SelfTradePreventionMode
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.