pub struct Subaccount {Show 19 fields
pub email: String,
pub id: u64,
pub login_enabled: bool,
pub portfolio: Option<HashMap<String, CurrencyPortfolio>>,
pub receive_notifications: bool,
pub system_name: String,
pub tif: Option<String>,
pub subaccount_type: String,
pub username: String,
pub margin_model: Option<String>,
pub available_funds: Option<f64>,
pub disabled_trading_products: Option<Vec<String>>,
pub is_password: Option<bool>,
pub proof_id: Option<String>,
pub proof_id_signature: Option<String>,
pub security_keys_assignments: Option<Vec<Value>>,
pub security_keys_enabled: Option<bool>,
pub trading_products_details: Option<Vec<TradingProductDetail>>,
pub referrals_count: Option<u64>,
}Expand description
Subaccount information
Fields§
§email: StringSubaccount email
id: u64Subaccount ID
login_enabled: boolWhether login is enabled
portfolio: Option<HashMap<String, CurrencyPortfolio>>Portfolio information (optional)
receive_notifications: boolWhether to receive notifications
system_name: StringSystem name
tif: Option<String>Time in force (optional)
subaccount_type: StringSubaccount type
username: StringUsername
margin_model: Option<String>Margin model
available_funds: Option<f64>Available funds
disabled_trading_products: Option<Vec<String>>Disabled trading products
is_password: Option<bool>Is password
proof_id: Option<String>Proof ID
proof_id_signature: Option<String>Proof ID signature
security_keys_assignments: Option<Vec<Value>>Security keys assignments
security_keys_enabled: Option<bool>Security keys enabled
trading_products_details: Option<Vec<TradingProductDetail>>Trading products details
referrals_count: Option<u64>Referrals count
Trait Implementations§
Source§impl Clone for Subaccount
impl Clone for Subaccount
Source§fn clone(&self) -> Subaccount
fn clone(&self) -> Subaccount
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 Subaccount
impl Debug for Subaccount
Source§impl<'de> Deserialize<'de> for Subaccount
impl<'de> Deserialize<'de> for Subaccount
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
Source§impl Display for Subaccount
impl Display for Subaccount
Auto Trait Implementations§
impl Freeze for Subaccount
impl RefUnwindSafe for Subaccount
impl Send for Subaccount
impl Sync for Subaccount
impl Unpin for Subaccount
impl UnwindSafe for Subaccount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.