pub struct Ledger { /* private fields */ }
Implementations§
Source§impl Ledger
impl Ledger
pub fn new() -> Ledger
pub fn set_acctcode(&mut self, acctcode: String)
pub fn with_acctcode(self, acctcode: String) -> Ledger
pub fn acctcode(&self) -> Option<&String>
pub fn reset_acctcode(&mut self)
pub fn set_cashbalance(&mut self, cashbalance: f32)
pub fn with_cashbalance(self, cashbalance: f32) -> Ledger
pub fn cashbalance(&self) -> Option<&f32>
pub fn reset_cashbalance(&mut self)
pub fn set_commoditymarketvalue(&mut self, commoditymarketvalue: f32)
pub fn with_commoditymarketvalue(self, commoditymarketvalue: f32) -> Ledger
pub fn commoditymarketvalue(&self) -> Option<&f32>
pub fn reset_commoditymarketvalue(&mut self)
pub fn set_corporatebondsmarketvalue(&mut self, corporatebondsmarketvalue: f32)
pub fn with_corporatebondsmarketvalue( self, corporatebondsmarketvalue: f32, ) -> Ledger
pub fn corporatebondsmarketvalue(&self) -> Option<&f32>
pub fn reset_corporatebondsmarketvalue(&mut self)
pub fn set_currency(&mut self, currency: String)
pub fn with_currency(self, currency: String) -> Ledger
pub fn currency(&self) -> Option<&String>
pub fn reset_currency(&mut self)
pub fn set_exchangerate(&mut self, exchangerate: f32)
pub fn with_exchangerate(self, exchangerate: f32) -> Ledger
pub fn exchangerate(&self) -> Option<&f32>
pub fn reset_exchangerate(&mut self)
pub fn set_funds(&mut self, funds: f32)
pub fn with_funds(self, funds: f32) -> Ledger
pub fn funds(&self) -> Option<&f32>
pub fn reset_funds(&mut self)
pub fn set_futuremarketvalue(&mut self, futuremarketvalue: f32)
pub fn with_futuremarketvalue(self, futuremarketvalue: f32) -> Ledger
pub fn futuremarketvalue(&self) -> Option<&f32>
pub fn reset_futuremarketvalue(&mut self)
pub fn set_interest(&mut self, interest: f32)
pub fn with_interest(self, interest: f32) -> Ledger
pub fn interest(&self) -> Option<&f32>
pub fn reset_interest(&mut self)
pub fn set_issueroptionsmarketvalue(&mut self, issueroptionsmarketvalue: f32)
pub fn with_issueroptionsmarketvalue( self, issueroptionsmarketvalue: f32, ) -> Ledger
pub fn issueroptionsmarketvalue(&self) -> Option<&f32>
pub fn reset_issueroptionsmarketvalue(&mut self)
pub fn set_key(&mut self, key: String)
pub fn with_key(self, key: String) -> Ledger
pub fn key(&self) -> Option<&String>
pub fn reset_key(&mut self)
pub fn set_moneyfunds(&mut self, moneyfunds: f32)
pub fn with_moneyfunds(self, moneyfunds: f32) -> Ledger
pub fn moneyfunds(&self) -> Option<&f32>
pub fn reset_moneyfunds(&mut self)
pub fn set_netliquidationvalue(&mut self, netliquidationvalue: f32)
pub fn with_netliquidationvalue(self, netliquidationvalue: f32) -> Ledger
pub fn netliquidationvalue(&self) -> Option<&f32>
pub fn reset_netliquidationvalue(&mut self)
pub fn set_realizedpnl(&mut self, realizedpnl: f32)
pub fn with_realizedpnl(self, realizedpnl: f32) -> Ledger
pub fn realizedpnl(&self) -> Option<&f32>
pub fn reset_realizedpnl(&mut self)
pub fn set_sessionid(&mut self, sessionid: i32)
pub fn with_sessionid(self, sessionid: i32) -> Ledger
pub fn sessionid(&self) -> Option<&i32>
pub fn reset_sessionid(&mut self)
pub fn set_settledcash(&mut self, settledcash: f32)
pub fn with_settledcash(self, settledcash: f32) -> Ledger
pub fn settledcash(&self) -> Option<&f32>
pub fn reset_settledcash(&mut self)
pub fn set_severity(&mut self, severity: i32)
pub fn with_severity(self, severity: i32) -> Ledger
pub fn severity(&self) -> Option<&i32>
pub fn reset_severity(&mut self)
pub fn set_stockmarketvalue(&mut self, stockmarketvalue: f32)
pub fn with_stockmarketvalue(self, stockmarketvalue: f32) -> Ledger
pub fn stockmarketvalue(&self) -> Option<&f32>
pub fn reset_stockmarketvalue(&mut self)
pub fn set_timestamp(&mut self, timestamp: i32)
pub fn with_timestamp(self, timestamp: i32) -> Ledger
pub fn timestamp(&self) -> Option<&i32>
pub fn reset_timestamp(&mut self)
pub fn set_unrealizedpnl(&mut self, unrealizedpnl: f32)
pub fn with_unrealizedpnl(self, unrealizedpnl: f32) -> Ledger
pub fn unrealizedpnl(&self) -> Option<&f32>
pub fn reset_unrealizedpnl(&mut self)
pub fn set_warrantsmarketvalue(&mut self, warrantsmarketvalue: f32)
pub fn with_warrantsmarketvalue(self, warrantsmarketvalue: f32) -> Ledger
pub fn warrantsmarketvalue(&self) -> Option<&f32>
pub fn reset_warrantsmarketvalue(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ledger
impl<'de> Deserialize<'de> for Ledger
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 Ledger
impl RefUnwindSafe for Ledger
impl Send for Ledger
impl Sync for Ledger
impl Unpin for Ledger
impl UnwindSafe for Ledger
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