Ledger

Struct Ledger 

Source
pub struct Ledger { /* private fields */ }

Implementations§

Source§

impl Ledger

Source

pub fn new() -> Ledger

Source

pub fn set_acctcode(&mut self, acctcode: String)

Source

pub fn with_acctcode(self, acctcode: String) -> Ledger

Source

pub fn acctcode(&self) -> Option<&String>

Source

pub fn reset_acctcode(&mut self)

Source

pub fn set_cashbalance(&mut self, cashbalance: f32)

Source

pub fn with_cashbalance(self, cashbalance: f32) -> Ledger

Source

pub fn cashbalance(&self) -> Option<&f32>

Source

pub fn reset_cashbalance(&mut self)

Source

pub fn set_commoditymarketvalue(&mut self, commoditymarketvalue: f32)

Source

pub fn with_commoditymarketvalue(self, commoditymarketvalue: f32) -> Ledger

Source

pub fn commoditymarketvalue(&self) -> Option<&f32>

Source

pub fn reset_commoditymarketvalue(&mut self)

Source

pub fn set_corporatebondsmarketvalue(&mut self, corporatebondsmarketvalue: f32)

Source

pub fn with_corporatebondsmarketvalue( self, corporatebondsmarketvalue: f32, ) -> Ledger

Source

pub fn corporatebondsmarketvalue(&self) -> Option<&f32>

Source

pub fn reset_corporatebondsmarketvalue(&mut self)

Source

pub fn set_currency(&mut self, currency: String)

Source

pub fn with_currency(self, currency: String) -> Ledger

Source

pub fn currency(&self) -> Option<&String>

Source

pub fn reset_currency(&mut self)

Source

pub fn set_exchangerate(&mut self, exchangerate: f32)

Source

pub fn with_exchangerate(self, exchangerate: f32) -> Ledger

Source

pub fn exchangerate(&self) -> Option<&f32>

Source

pub fn reset_exchangerate(&mut self)

Source

pub fn set_funds(&mut self, funds: f32)

Source

pub fn with_funds(self, funds: f32) -> Ledger

Source

pub fn funds(&self) -> Option<&f32>

Source

pub fn reset_funds(&mut self)

Source

pub fn set_futuremarketvalue(&mut self, futuremarketvalue: f32)

Source

pub fn with_futuremarketvalue(self, futuremarketvalue: f32) -> Ledger

Source

pub fn futuremarketvalue(&self) -> Option<&f32>

Source

pub fn reset_futuremarketvalue(&mut self)

Source

pub fn set_interest(&mut self, interest: f32)

Source

pub fn with_interest(self, interest: f32) -> Ledger

Source

pub fn interest(&self) -> Option<&f32>

Source

pub fn reset_interest(&mut self)

Source

pub fn set_issueroptionsmarketvalue(&mut self, issueroptionsmarketvalue: f32)

Source

pub fn with_issueroptionsmarketvalue( self, issueroptionsmarketvalue: f32, ) -> Ledger

Source

pub fn issueroptionsmarketvalue(&self) -> Option<&f32>

Source

pub fn reset_issueroptionsmarketvalue(&mut self)

Source

pub fn set_key(&mut self, key: String)

Source

pub fn with_key(self, key: String) -> Ledger

Source

pub fn key(&self) -> Option<&String>

Source

pub fn reset_key(&mut self)

Source

pub fn set_moneyfunds(&mut self, moneyfunds: f32)

Source

pub fn with_moneyfunds(self, moneyfunds: f32) -> Ledger

Source

pub fn moneyfunds(&self) -> Option<&f32>

Source

pub fn reset_moneyfunds(&mut self)

Source

pub fn set_netliquidationvalue(&mut self, netliquidationvalue: f32)

Source

pub fn with_netliquidationvalue(self, netliquidationvalue: f32) -> Ledger

Source

pub fn netliquidationvalue(&self) -> Option<&f32>

Source

pub fn reset_netliquidationvalue(&mut self)

Source

pub fn set_realizedpnl(&mut self, realizedpnl: f32)

Source

pub fn with_realizedpnl(self, realizedpnl: f32) -> Ledger

Source

pub fn realizedpnl(&self) -> Option<&f32>

Source

pub fn reset_realizedpnl(&mut self)

Source

pub fn set_sessionid(&mut self, sessionid: i32)

Source

pub fn with_sessionid(self, sessionid: i32) -> Ledger

Source

pub fn sessionid(&self) -> Option<&i32>

Source

pub fn reset_sessionid(&mut self)

Source

pub fn set_settledcash(&mut self, settledcash: f32)

Source

pub fn with_settledcash(self, settledcash: f32) -> Ledger

Source

pub fn settledcash(&self) -> Option<&f32>

Source

pub fn reset_settledcash(&mut self)

Source

pub fn set_severity(&mut self, severity: i32)

Source

pub fn with_severity(self, severity: i32) -> Ledger

Source

pub fn severity(&self) -> Option<&i32>

Source

pub fn reset_severity(&mut self)

Source

pub fn set_stockmarketvalue(&mut self, stockmarketvalue: f32)

Source

pub fn with_stockmarketvalue(self, stockmarketvalue: f32) -> Ledger

Source

pub fn stockmarketvalue(&self) -> Option<&f32>

Source

pub fn reset_stockmarketvalue(&mut self)

Source

pub fn set_timestamp(&mut self, timestamp: i32)

Source

pub fn with_timestamp(self, timestamp: i32) -> Ledger

Source

pub fn timestamp(&self) -> Option<&i32>

Source

pub fn reset_timestamp(&mut self)

Source

pub fn set_unrealizedpnl(&mut self, unrealizedpnl: f32)

Source

pub fn with_unrealizedpnl(self, unrealizedpnl: f32) -> Ledger

Source

pub fn unrealizedpnl(&self) -> Option<&f32>

Source

pub fn reset_unrealizedpnl(&mut self)

Source

pub fn set_warrantsmarketvalue(&mut self, warrantsmarketvalue: f32)

Source

pub fn with_warrantsmarketvalue(self, warrantsmarketvalue: f32) -> Ledger

Source

pub fn warrantsmarketvalue(&self) -> Option<&f32>

Source

pub fn reset_warrantsmarketvalue(&mut self)

Trait Implementations§

Source§

impl Debug for Ledger

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Ledger

Source§

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 Serialize for Ledger

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,