pub struct AccountSummary {
pub balances: BTreeMap<ProductId, Balance>,
pub positions: Vec<Position>,
pub profit_loss: Option<Decimal>,
pub clearing_venue: Option<VenueId>,
}Fields§
§balances: BTreeMap<ProductId, Balance>§positions: Vec<Position>§profit_loss: Option<Decimal>§clearing_venue: Option<VenueId>Implementations§
Source§impl AccountSummary
impl AccountSummary
pub fn from_simple_balances(balances: BTreeMap<ProductId, Decimal>) -> Self
Trait Implementations§
Source§impl Clone for AccountSummary
impl Clone for AccountSummary
Source§fn clone(&self) -> AccountSummary
fn clone(&self) -> AccountSummary
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 AccountSummary
impl Debug for AccountSummary
Source§impl Default for AccountSummary
impl Default for AccountSummary
Source§fn default() -> AccountSummary
fn default() -> AccountSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountSummary
impl<'de> Deserialize<'de> for AccountSummary
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 JsonSchema for AccountSummary
impl JsonSchema for AccountSummary
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AccountSummary
impl RefUnwindSafe for AccountSummary
impl Send for AccountSummary
impl Sync for AccountSummary
impl Unpin for AccountSummary
impl UnwindSafe for AccountSummary
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