pub struct AccountInfo {Show 15 fields
pub maker_commission: i32,
pub taker_commission: i32,
pub buyer_commission: i32,
pub seller_commission: i32,
pub commission_rates: Option<CommissionRates>,
pub can_trade: bool,
pub can_withdraw: bool,
pub can_deposit: bool,
pub brokered: bool,
pub require_self_trade_prevention: bool,
pub update_time: u64,
pub account_type: AccountType,
pub balances: Vec<Balance>,
pub permissions: Vec<AccountType>,
pub uid: Option<u64>,
}Expand description
Account information response.
Fields§
§maker_commission: i32Maker commission rate (bps).
taker_commission: i32Taker commission rate (bps).
buyer_commission: i32Buyer commission rate (bps).
seller_commission: i32Seller commission rate (bps).
commission_rates: Option<CommissionRates>Commission rates for specific assets.
can_trade: boolWhether trading is enabled.
can_withdraw: boolWhether withdrawals are enabled.
can_deposit: boolWhether deposits are enabled.
brokered: boolWhether self-trade prevention is being used.
require_self_trade_prevention: boolWhether this account requires self-trade prevention.
update_time: u64Account update time.
account_type: AccountTypeAccount type.
balances: Vec<Balance>Account balances.
permissions: Vec<AccountType>Account permissions.
uid: Option<u64>UID (user ID).
Trait Implementations§
Source§impl Clone for AccountInfo
impl Clone for AccountInfo
Source§fn clone(&self) -> AccountInfo
fn clone(&self) -> AccountInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountInfo
impl Debug for AccountInfo
Source§impl<'de> Deserialize<'de> for AccountInfo
impl<'de> Deserialize<'de> for AccountInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AccountInfo
impl RefUnwindSafe for AccountInfo
impl Send for AccountInfo
impl Sync for AccountInfo
impl Unpin for AccountInfo
impl UnwindSafe for AccountInfo
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