pub struct StreamGetBalanceData {
pub balance: Decimal,
pub credit: Decimal,
pub equity: Decimal,
pub margin: Decimal,
pub margin_free: Decimal,
pub margin_level: Decimal,
}Fields§
§balance: DecimalBalance in account currency
credit: DecimalCredit in account currency
equity: DecimalSum of balance and all profits in account currency
margin: DecimalMargin requirements
margin_free: DecimalFree margin
margin_level: DecimalMargin level percentage
Implementations§
Source§impl StreamGetBalanceData
impl StreamGetBalanceData
Sourcepub fn with_balance(self, value: impl Into<Decimal>) -> Self
pub fn with_balance(self, value: impl Into<Decimal>) -> Self
Sets the balance field of this struct.
Sourcepub fn with_credit(self, value: impl Into<Decimal>) -> Self
pub fn with_credit(self, value: impl Into<Decimal>) -> Self
Sets the credit field of this struct.
Sourcepub fn with_equity(self, value: impl Into<Decimal>) -> Self
pub fn with_equity(self, value: impl Into<Decimal>) -> Self
Sets the equity field of this struct.
Sourcepub fn with_margin(self, value: impl Into<Decimal>) -> Self
pub fn with_margin(self, value: impl Into<Decimal>) -> Self
Sets the margin field of this struct.
Sourcepub fn with_margin_free(self, value: impl Into<Decimal>) -> Self
pub fn with_margin_free(self, value: impl Into<Decimal>) -> Self
Sets the margin_free field of this struct.
Sourcepub fn with_margin_level(self, value: impl Into<Decimal>) -> Self
pub fn with_margin_level(self, value: impl Into<Decimal>) -> Self
Sets the margin_level field of this struct.
Trait Implementations§
Source§impl Clone for StreamGetBalanceData
impl Clone for StreamGetBalanceData
Source§fn clone(&self) -> StreamGetBalanceData
fn clone(&self) -> StreamGetBalanceData
Returns a copy 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 StreamGetBalanceData
impl Debug for StreamGetBalanceData
Source§impl Default for StreamGetBalanceData
impl Default for StreamGetBalanceData
Source§fn default() -> StreamGetBalanceData
fn default() -> StreamGetBalanceData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamGetBalanceData
impl<'de> Deserialize<'de> for StreamGetBalanceData
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
Source§impl PartialEq for StreamGetBalanceData
impl PartialEq for StreamGetBalanceData
Source§impl Serialize for StreamGetBalanceData
impl Serialize for StreamGetBalanceData
impl StructuralPartialEq for StreamGetBalanceData
Auto Trait Implementations§
impl Freeze for StreamGetBalanceData
impl RefUnwindSafe for StreamGetBalanceData
impl Send for StreamGetBalanceData
impl Sync for StreamGetBalanceData
impl Unpin for StreamGetBalanceData
impl UnwindSafe for StreamGetBalanceData
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)