pub struct SubsetStatsMsg {Show 15 fields
pub total_trades: usize,
pub winning_trades: usize,
pub losing_trades: usize,
pub breakeven_trades: usize,
pub total_pnl: f64,
pub gross_profit: f64,
pub gross_loss: f64,
pub win_rate: f64,
pub profit_factor: f64,
pub avg_win: f64,
pub avg_loss: f64,
pub win_loss_ratio: f64,
pub expectancy: f64,
pub largest_win: f64,
pub largest_loss: f64,
}Expand description
Wire-safe mirror of SubsetStats.
Fields§
§total_trades: usize§winning_trades: usize§losing_trades: usize§breakeven_trades: usize§total_pnl: f64§gross_profit: f64§gross_loss: f64§win_rate: f64§profit_factor: f64§avg_win: f64§avg_loss: f64§win_loss_ratio: f64§expectancy: f64§largest_win: f64§largest_loss: f64Trait Implementations§
Source§impl Clone for SubsetStatsMsg
impl Clone for SubsetStatsMsg
Source§fn clone(&self) -> SubsetStatsMsg
fn clone(&self) -> SubsetStatsMsg
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 SubsetStatsMsg
impl Debug for SubsetStatsMsg
Source§impl<'de> Deserialize<'de> for SubsetStatsMsg
impl<'de> Deserialize<'de> for SubsetStatsMsg
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 SubsetStatsMsg
impl RefUnwindSafe for SubsetStatsMsg
impl Send for SubsetStatsMsg
impl Sync for SubsetStatsMsg
impl Unpin for SubsetStatsMsg
impl UnsafeUnpin for SubsetStatsMsg
impl UnwindSafe for SubsetStatsMsg
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