pub struct AccountConfig {
pub info: Option<Value>,
pub multi_assets_margin: bool,
pub fee_tier: i32,
pub can_trade: bool,
pub can_deposit: bool,
pub can_withdraw: bool,
pub update_time: i64,
}Expand description
Account configuration information.
Contains configuration parameters for futures accounts, including multi-asset mode and fee tier settings.
Fields§
§info: Option<Value>Raw exchange response data.
multi_assets_margin: boolMulti-asset margin mode (true = multi-asset enabled, false = single-asset mode).
fee_tier: i32Fee tier level (0-9, higher tier means lower fees).
can_trade: boolWhether trading is enabled.
can_deposit: boolWhether deposits are enabled.
can_withdraw: boolWhether withdrawals are enabled.
update_time: i64Configuration update timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for AccountConfig
impl Clone for AccountConfig
Source§fn clone(&self) -> AccountConfig
fn clone(&self) -> AccountConfig
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 AccountConfig
impl Debug for AccountConfig
Source§impl Default for AccountConfig
impl Default for AccountConfig
Source§fn default() -> AccountConfig
fn default() -> AccountConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountConfig
impl<'de> Deserialize<'de> for AccountConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AccountConfig
impl Serialize for AccountConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AccountConfig
impl RefUnwindSafe for AccountConfig
impl Send for AccountConfig
impl Sync for AccountConfig
impl Unpin for AccountConfig
impl UnwindSafe for AccountConfig
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