pub struct PerCurrencyBalance {
pub currency: String,
pub cash: f64,
pub market_value: f64,
pub total_equity: f64,
pub buying_power: f64,
pub maintenance_excess: f64,
pub is_real_time: bool,
}Expand description
Balance snapshot for a single currency.
Fields§
§currency: StringCurrency code ("CAD" or "USD").
cash: f64Cash balance in this currency.
market_value: f64Total market value of securities denominated in this currency.
total_equity: f64Total account equity in this currency (cash + market value).
buying_power: f64Available buying power.
maintenance_excess: f64Maintenance excess (equity above the margin maintenance requirement).
is_real_time: boolWhether the values are real-time (true) or delayed (false).
Trait Implementations§
Source§impl Clone for PerCurrencyBalance
impl Clone for PerCurrencyBalance
Source§fn clone(&self) -> PerCurrencyBalance
fn clone(&self) -> PerCurrencyBalance
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 PerCurrencyBalance
impl Debug for PerCurrencyBalance
Source§impl<'de> Deserialize<'de> for PerCurrencyBalance
impl<'de> Deserialize<'de> for PerCurrencyBalance
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
Auto Trait Implementations§
impl Freeze for PerCurrencyBalance
impl RefUnwindSafe for PerCurrencyBalance
impl Send for PerCurrencyBalance
impl Sync for PerCurrencyBalance
impl Unpin for PerCurrencyBalance
impl UnsafeUnpin for PerCurrencyBalance
impl UnwindSafe for PerCurrencyBalance
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