#[non_exhaustive]pub struct Account {
pub id: AccountId,
pub is_live: bool,
pub login: Option<i64>,
}Expand description
Trading account an access token grants access to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: AccountIdIdentifier of the account.
is_live: boolTells whether the account belongs to the live environment.
login: Option<i64>Login number of the account at the broker, when the server reports it.
Trait Implementations§
impl Copy for Account
impl Eq for Account
impl StructuralPartialEq for Account
Source§impl TryFrom<ProtoOaCtidTraderAccount> for Account
impl TryFrom<ProtoOaCtidTraderAccount> for Account
Source§type Error = ValueError
type Error = ValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for Account
impl Freeze for Account
impl Move for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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