Struct questrade::AccountBalance
source · [−]pub struct AccountBalance {
pub currency: Currency,
pub cash: Number,
pub market_value: Number,
pub total_equity: Number,
pub buying_power: Number,
pub maintenance_excess: Number,
pub is_real_time: bool,
}
Expand description
Account balance for specific currency.
Fields
currency: Currency
Currency of the balance figure.
cash: Number
Balance amount.
market_value: Number
Market value of all securities in the account in a given currency.
total_equity: Number
Equity as a difference between cash and marketValue properties.
buying_power: Number
Buying power for that particular currency side of the account.
maintenance_excess: Number
Maintenance excess for that particular side of the account.
is_real_time: bool
Whether real-time data was used to calculate the above balance.
Trait Implementations
sourceimpl Clone for AccountBalance
impl Clone for AccountBalance
sourcefn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccountBalance
impl Debug for AccountBalance
sourceimpl<'de> Deserialize<'de> for AccountBalance
impl<'de> Deserialize<'de> for AccountBalance
sourcefn 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
sourceimpl PartialEq<AccountBalance> for AccountBalance
impl PartialEq<AccountBalance> for AccountBalance
sourcefn eq(&self, other: &AccountBalance) -> bool
fn eq(&self, other: &AccountBalance) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for AccountBalance
impl Serialize for AccountBalance
impl StructuralPartialEq for AccountBalance
Auto Trait Implementations
impl RefUnwindSafe for AccountBalance
impl Send for AccountBalance
impl Sync for AccountBalance
impl Unpin for AccountBalance
impl UnwindSafe for AccountBalance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more