#[repr(i32)]pub enum Side {
SIDE_UNSPECIFIED = 0,
BUY = 1,
SELL = 2,
}Expand description
§============================================================================= Shared Enums (used by both REST and binary messages)
Variants§
SIDE_UNSPECIFIED = 0
Side was not provided.
BUY = 1
Buy base asset using quote asset.
SELL = 2
Sell base asset for quote asset.
Implementations§
Source§impl Side
impl Side
Sourcepub const SideUnspecified: Self = Self::SIDE_UNSPECIFIED
pub const SideUnspecified: Self = Self::SIDE_UNSPECIFIED
Idiomatic alias for Self::SIDE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Sell: Self = Self::SELL
pub const Sell: Self = Self::SELL
Idiomatic alias for Self::SELL; Debug prints the variant name.
Trait Implementations§
impl Copy for Side
Source§impl<'de> Deserialize<'de> for Side
impl<'de> Deserialize<'de> for Side
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 Side
impl Enumeration for Side
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 Side
Source§impl ProtoElemJson for Side
impl ProtoElemJson for Side
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 Side
Auto Trait Implementations§
impl Freeze for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnsafeUnpin for Side
impl UnwindSafe for Side
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.