pub struct GetCurrentUserDataResponse {
pub company_unit: i64,
pub currency: String,
pub group: String,
pub ib_account: bool,
pub leverage: i64,
pub leverage_multiplier: Decimal,
pub spread_type: Option<String>,
pub trailing_stop: bool,
}Expand description
Structure representing account details
Fields§
§company_unit: i64Unit the account is assigned to
currency: StringAccount currency
group: StringGroup
ib_account: boolIndicates whether this account is an IB account
leverage: i64This field should not be used. It is inactive and its value is always 1
leverage_multiplier: DecimalThe factor used for margin calculations. The actual value of leverage can be calculated by dividing this value by 100
spread_type: Option<String>SpreadType, null if not applicable
trailing_stop: boolIndicates whether this account is enabled to use trailing stop
Implementations§
Source§impl GetCurrentUserDataResponse
impl GetCurrentUserDataResponse
Sourcepub fn with_company_unit(self, value: impl Into<i64>) -> Self
pub fn with_company_unit(self, value: impl Into<i64>) -> Self
Sets the company_unit field of this struct.
Sourcepub fn with_currency(self, value: impl Into<String>) -> Self
pub fn with_currency(self, value: impl Into<String>) -> Self
Sets the currency field of this struct.
Sourcepub fn with_group(self, value: impl Into<String>) -> Self
pub fn with_group(self, value: impl Into<String>) -> Self
Sets the group field of this struct.
Sourcepub fn with_ib_account(self, value: impl Into<bool>) -> Self
pub fn with_ib_account(self, value: impl Into<bool>) -> Self
Sets the ib_account field of this struct.
Sourcepub fn with_leverage(self, value: impl Into<i64>) -> Self
pub fn with_leverage(self, value: impl Into<i64>) -> Self
Sets the leverage field of this struct.
Sourcepub fn with_leverage_multiplier(self, value: impl Into<Decimal>) -> Self
pub fn with_leverage_multiplier(self, value: impl Into<Decimal>) -> Self
Sets the leverage_multiplier field of this struct.
Sourcepub fn with_spread_type(self, value: impl Into<String>) -> Self
pub fn with_spread_type(self, value: impl Into<String>) -> Self
Sets the spread_type field of this struct.
Sourcepub fn with_trailing_stop(self, value: impl Into<bool>) -> Self
pub fn with_trailing_stop(self, value: impl Into<bool>) -> Self
Sets the trailing_stop field of this struct.
Trait Implementations§
Source§impl Clone for GetCurrentUserDataResponse
impl Clone for GetCurrentUserDataResponse
Source§fn clone(&self) -> GetCurrentUserDataResponse
fn clone(&self) -> GetCurrentUserDataResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetCurrentUserDataResponse
impl Debug for GetCurrentUserDataResponse
Source§impl Default for GetCurrentUserDataResponse
impl Default for GetCurrentUserDataResponse
Source§fn default() -> GetCurrentUserDataResponse
fn default() -> GetCurrentUserDataResponse
Source§impl<'de> Deserialize<'de> for GetCurrentUserDataResponse
impl<'de> Deserialize<'de> for GetCurrentUserDataResponse
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>,
impl StructuralPartialEq for GetCurrentUserDataResponse
Auto Trait Implementations§
impl Freeze for GetCurrentUserDataResponse
impl RefUnwindSafe for GetCurrentUserDataResponse
impl Send for GetCurrentUserDataResponse
impl Sync for GetCurrentUserDataResponse
impl Unpin for GetCurrentUserDataResponse
impl UnwindSafe for GetCurrentUserDataResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)