pub struct MonthlyReturn {
pub year: i32,
pub month: u32,
pub pnl: f64,
pub trade_count: usize,
pub ending_balance: f64,
}Expand description
P&L summary for one calendar month.
Fields§
§year: i32Year (e.g. 2026).
month: u32Month (1–12).
pnl: f64Sum of P&L for rows closed in this month.
trade_count: usizeNumber of close events (Legacy) or completed campaigns (FutureQuote).
ending_balance: f64Balance at end of month.
Trait Implementations§
Source§impl Clone for MonthlyReturn
impl Clone for MonthlyReturn
Source§fn clone(&self) -> MonthlyReturn
fn clone(&self) -> MonthlyReturn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MonthlyReturn
impl Debug for MonthlyReturn
Source§impl<'de> Deserialize<'de> for MonthlyReturn
impl<'de> Deserialize<'de> for MonthlyReturn
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 MonthlyReturn
impl RefUnwindSafe for MonthlyReturn
impl Send for MonthlyReturn
impl Sync for MonthlyReturn
impl Unpin for MonthlyReturn
impl UnsafeUnpin for MonthlyReturn
impl UnwindSafe for MonthlyReturn
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