pub struct ProfitSummaryBreakdown {
pub stock: Option<Decimal>,
pub fund: Option<Decimal>,
pub crypto: Option<Decimal>,
pub mmf: Option<Decimal>,
pub other: Option<Decimal>,
pub cumulative_transaction_amount: Option<Decimal>,
pub trade_order_num: String,
pub trade_stock_num: String,
pub ipo: Option<Decimal>,
pub ipo_hit: i32,
pub ipo_subscription: i32,
pub summary_info: Vec<ProfitSummaryInfo>,
}Expand description
P&L breakdown by asset type
Fields§
§stock: Option<Decimal>Stock P&L
fund: Option<Decimal>Fund P&L
crypto: Option<Decimal>Crypto P&L
mmf: Option<Decimal>Money market fund P&L
other: Option<Decimal>Other P&L
cumulative_transaction_amount: Option<Decimal>Cumulative transaction amount
trade_order_num: StringTotal number of orders
trade_stock_num: StringTotal number of traded securities
ipo: Option<Decimal>IPO P&L
ipo_hit: i32IPO hits
ipo_subscription: i32IPO subscriptions
summary_info: Vec<ProfitSummaryInfo>Per-category summary info
Trait Implementations§
Source§impl Clone for ProfitSummaryBreakdown
impl Clone for ProfitSummaryBreakdown
Source§fn clone(&self) -> ProfitSummaryBreakdown
fn clone(&self) -> ProfitSummaryBreakdown
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 ProfitSummaryBreakdown
impl Debug for ProfitSummaryBreakdown
Source§impl<'de> Deserialize<'de> for ProfitSummaryBreakdown
impl<'de> Deserialize<'de> for ProfitSummaryBreakdown
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 ProfitSummaryBreakdown
impl RefUnwindSafe for ProfitSummaryBreakdown
impl Send for ProfitSummaryBreakdown
impl Sync for ProfitSummaryBreakdown
impl Unpin for ProfitSummaryBreakdown
impl UnsafeUnpin for ProfitSummaryBreakdown
impl UnwindSafe for ProfitSummaryBreakdown
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more