pub struct SubsetStatsMsg {Show 18 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,
pub commission: f64,
pub swap: f64,
pub gross_pnl: Option<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: f64§commission: f64Commission settled on this subset’s rows.
swap: f64Swap settled on this subset’s rows.
gross_pnl: Option<f64>Subset profit and loss before commission and swap, present only when either was settled.
Trait 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<SubsetStatsMsg, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubsetStatsMsg, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SubsetStatsMsg
impl Serialize for SubsetStatsMsg
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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