#[repr(i32)]pub enum FeeAsset {
FEE_ASSET_UNSPECIFIED = 0,
QUOTE = 1,
BASE = 2,
}Expand description
FeeAsset identifies the asset in which an order fee is charged.
Variants§
FEE_ASSET_UNSPECIFIED = 0
Fee asset was not provided; orders default to QUOTE.
QUOTE = 1
Fees are charged in the quote asset. SELL fees always use quote asset.
BASE = 2
BUY-only option: fees are deducted from the received base asset.
Implementations§
Source§impl FeeAsset
impl FeeAsset
Sourcepub const FeeAssetUnspecified: Self = Self::FEE_ASSET_UNSPECIFIED
pub const FeeAssetUnspecified: Self = Self::FEE_ASSET_UNSPECIFIED
Idiomatic alias for Self::FEE_ASSET_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Quote: Self = Self::QUOTE
pub const Quote: Self = Self::QUOTE
Idiomatic alias for Self::QUOTE; Debug prints the variant name.
Sourcepub const Base: Self = Self::BASE
pub const Base: Self = Self::BASE
Idiomatic alias for Self::BASE; Debug prints the variant name.
Trait Implementations§
impl Copy for FeeAsset
Source§impl<'de> Deserialize<'de> for FeeAsset
impl<'de> Deserialize<'de> for FeeAsset
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 FeeAsset
impl Enumeration for FeeAsset
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 FeeAsset
Source§impl ProtoElemJson for FeeAsset
impl ProtoElemJson for FeeAsset
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 FeeAsset
Auto Trait Implementations§
impl Freeze for FeeAsset
impl RefUnwindSafe for FeeAsset
impl Send for FeeAsset
impl Sync for FeeAsset
impl Unpin for FeeAsset
impl UnsafeUnpin for FeeAsset
impl UnwindSafe for FeeAsset
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.