pub struct ProtoOaCtidTraderAccount {
pub ctid_trader_account_id: u64,
pub is_live: Option<bool>,
pub trader_login: Option<i64>,
pub last_closing_deal_timestamp: Option<i64>,
pub last_balance_update_timestamp: Option<i64>,
pub broker_title_short: Option<String>,
}Expand description
- Trader account entity.
Fields§
§ctid_trader_account_id: u64Unique identifier of the trader’s account. Used to match responses to trader’s accounts.cTrader platform. Different brokers might have different ids
is_live: Option<bool>If TRUE then the account is belong to Live environment and live host must be used to authorize it
trader_login: Option<i64>TraderLogin for a specific account. Value is displayed on Client App UI
last_closing_deal_timestamp: Option<i64>The Unix time in milliseconds of the last ProtoOAClosePositionDetail happened to this account.
last_balance_update_timestamp: Option<i64>The Unix time in milliseconds of the last ProtoOADepositWithdraw happened to this account.
broker_title_short: Option<String>The name of the broker to which the account belongs to. Shortened to be displayed in the UI.
Implementations§
Source§impl ProtoOaCtidTraderAccount
impl ProtoOaCtidTraderAccount
Sourcepub fn is_live(&self) -> bool
pub fn is_live(&self) -> bool
Returns the value of is_live, or the default value if is_live is unset.
Sourcepub fn trader_login(&self) -> i64
pub fn trader_login(&self) -> i64
Returns the value of trader_login, or the default value if trader_login is unset.
Sourcepub fn last_closing_deal_timestamp(&self) -> i64
pub fn last_closing_deal_timestamp(&self) -> i64
Returns the value of last_closing_deal_timestamp, or the default value if last_closing_deal_timestamp is unset.
Sourcepub fn last_balance_update_timestamp(&self) -> i64
pub fn last_balance_update_timestamp(&self) -> i64
Returns the value of last_balance_update_timestamp, or the default value if last_balance_update_timestamp is unset.
Sourcepub fn broker_title_short(&self) -> &str
pub fn broker_title_short(&self) -> &str
Returns the value of broker_title_short, or the default value if broker_title_short is unset.
Trait Implementations§
Source§impl Clone for ProtoOaCtidTraderAccount
impl Clone for ProtoOaCtidTraderAccount
Source§fn clone(&self) -> ProtoOaCtidTraderAccount
fn clone(&self) -> ProtoOaCtidTraderAccount
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtoOaCtidTraderAccount
impl Debug for ProtoOaCtidTraderAccount
Source§impl Default for ProtoOaCtidTraderAccount
impl Default for ProtoOaCtidTraderAccount
Source§impl<'de> Deserialize<'de> for ProtoOaCtidTraderAccount
impl<'de> Deserialize<'de> for ProtoOaCtidTraderAccount
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>,
Source§impl Hash for ProtoOaCtidTraderAccount
impl Hash for ProtoOaCtidTraderAccount
Source§impl Message for ProtoOaCtidTraderAccount
impl Message for ProtoOaCtidTraderAccount
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ProtoOaCtidTraderAccount
impl PartialEq for ProtoOaCtidTraderAccount
Source§impl Serialize for ProtoOaCtidTraderAccount
impl Serialize for ProtoOaCtidTraderAccount
impl Eq for ProtoOaCtidTraderAccount
impl StructuralPartialEq for ProtoOaCtidTraderAccount
Auto Trait Implementations§
impl Freeze for ProtoOaCtidTraderAccount
impl RefUnwindSafe for ProtoOaCtidTraderAccount
impl Send for ProtoOaCtidTraderAccount
impl Sync for ProtoOaCtidTraderAccount
impl Unpin for ProtoOaCtidTraderAccount
impl UnwindSafe for ProtoOaCtidTraderAccount
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§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.