#[repr(i32)]pub enum TransferCode {
Show 13 variants
TRANSFER_CODE_UNSPECIFIED = 0,
DEPOSIT = 1_000,
WITHDRAW = 1_001,
MAKER_FEE = 1_010,
TAKER_FEE = 1_011,
INTERNAL_TRANSFER = 1_030,
TRADE_BASE = 1_031,
TRADE_QUOTE = 1_032,
REBATE = 1_041,
FUNDING_TO_TRADING = 1_060,
TRADING_TO_FUNDING = 1_061,
TRADING_WITHDRAW_RESERVE = 1_062,
FUNDING_USER_TRANSFER = 1_063,
}Expand description
TransferCode identifies the product reason for a transfer.
Variants§
TRANSFER_CODE_UNSPECIFIED = 0
Transfer reason was not specified.
DEPOSIT = 1_000
External deposit into a funding account.
WITHDRAW = 1_001
External withdrawal from a funding account.
MAKER_FEE = 1_010
Maker fee charged for a trade.
TAKER_FEE = 1_011
Taker fee charged for a trade.
INTERNAL_TRANSFER = 1_030
Internal account transfer.
TRADE_BASE = 1_031
Spot trade base-asset leg.
TRADE_QUOTE = 1_032
Spot trade quote-asset leg.
REBATE = 1_041
Rebate transfer.
FUNDING_TO_TRADING = 1_060
Funding-to-trading user bucket transfer.
TRADING_TO_FUNDING = 1_061
Trading-to-funding user bucket transfer.
TRADING_WITHDRAW_RESERVE = 1_062
Reserve leg for a trading withdrawal.
FUNDING_USER_TRANSFER = 1_063
Funding user-to-user transfer.
Implementations§
Source§impl TransferCode
impl TransferCode
Sourcepub const TransferCodeUnspecified: Self = Self::TRANSFER_CODE_UNSPECIFIED
pub const TransferCodeUnspecified: Self = Self::TRANSFER_CODE_UNSPECIFIED
Idiomatic alias for Self::TRANSFER_CODE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Deposit: Self = Self::DEPOSIT
pub const Deposit: Self = Self::DEPOSIT
Idiomatic alias for Self::DEPOSIT; Debug prints the variant name.
Sourcepub const Withdraw: Self = Self::WITHDRAW
pub const Withdraw: Self = Self::WITHDRAW
Idiomatic alias for Self::WITHDRAW; Debug prints the variant name.
Sourcepub const MakerFee: Self = Self::MAKER_FEE
pub const MakerFee: Self = Self::MAKER_FEE
Idiomatic alias for Self::MAKER_FEE; Debug prints the variant name.
Sourcepub const TakerFee: Self = Self::TAKER_FEE
pub const TakerFee: Self = Self::TAKER_FEE
Idiomatic alias for Self::TAKER_FEE; Debug prints the variant name.
Sourcepub const InternalTransfer: Self = Self::INTERNAL_TRANSFER
pub const InternalTransfer: Self = Self::INTERNAL_TRANSFER
Idiomatic alias for Self::INTERNAL_TRANSFER; Debug prints the variant name.
Sourcepub const TradeBase: Self = Self::TRADE_BASE
pub const TradeBase: Self = Self::TRADE_BASE
Idiomatic alias for Self::TRADE_BASE; Debug prints the variant name.
Sourcepub const TradeQuote: Self = Self::TRADE_QUOTE
pub const TradeQuote: Self = Self::TRADE_QUOTE
Idiomatic alias for Self::TRADE_QUOTE; Debug prints the variant name.
Sourcepub const Rebate: Self = Self::REBATE
pub const Rebate: Self = Self::REBATE
Idiomatic alias for Self::REBATE; Debug prints the variant name.
Sourcepub const FundingToTrading: Self = Self::FUNDING_TO_TRADING
pub const FundingToTrading: Self = Self::FUNDING_TO_TRADING
Idiomatic alias for Self::FUNDING_TO_TRADING; Debug prints the variant name.
Sourcepub const TradingToFunding: Self = Self::TRADING_TO_FUNDING
pub const TradingToFunding: Self = Self::TRADING_TO_FUNDING
Idiomatic alias for Self::TRADING_TO_FUNDING; Debug prints the variant name.
Sourcepub const TradingWithdrawReserve: Self = Self::TRADING_WITHDRAW_RESERVE
pub const TradingWithdrawReserve: Self = Self::TRADING_WITHDRAW_RESERVE
Idiomatic alias for Self::TRADING_WITHDRAW_RESERVE; Debug prints the variant name.
Sourcepub const FundingUserTransfer: Self = Self::FUNDING_USER_TRANSFER
pub const FundingUserTransfer: Self = Self::FUNDING_USER_TRANSFER
Idiomatic alias for Self::FUNDING_USER_TRANSFER; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for TransferCode
impl Clone for TransferCode
Source§fn clone(&self) -> TransferCode
fn clone(&self) -> TransferCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransferCode
Source§impl Debug for TransferCode
impl Debug for TransferCode
Source§impl Default for TransferCode
impl Default for TransferCode
Source§impl<'de> Deserialize<'de> for TransferCode
impl<'de> Deserialize<'de> for TransferCode
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Enumeration for TransferCode
impl Enumeration for TransferCode
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.impl Eq for TransferCode
Source§impl Hash for TransferCode
impl Hash for TransferCode
Source§impl PartialEq for TransferCode
impl PartialEq for TransferCode
Source§impl ProtoElemJson for TransferCode
impl ProtoElemJson for TransferCode
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>
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>
Source§impl Serialize for TransferCode
impl Serialize for TransferCode
impl StructuralPartialEq for TransferCode
Auto Trait Implementations§
impl Freeze for TransferCode
impl RefUnwindSafe for TransferCode
impl Send for TransferCode
impl Sync for TransferCode
impl Unpin for TransferCode
impl UnsafeUnpin for TransferCode
impl UnwindSafe for TransferCode
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
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
key and return true if they are equal.