Struct StrategyPnl
pub struct StrategyPnl {
pub daily_pnl: Decimal,
pub total_pnl: Decimal,
}Expand description
Per-strategy realized P&L counters.
Fields§
§daily_pnl: Decimal§total_pnl: DecimalTrait Implementations§
§impl Clone for StrategyPnl
impl Clone for StrategyPnl
§fn clone(&self) -> StrategyPnl
fn clone(&self) -> StrategyPnl
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for StrategyPnl
impl Debug for StrategyPnl
§impl Default for StrategyPnl
impl Default for StrategyPnl
§fn default() -> StrategyPnl
fn default() -> StrategyPnl
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for StrategyPnl
impl<'de> Deserialize<'de> for StrategyPnl
§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
§impl PartialEq for StrategyPnl
impl PartialEq for StrategyPnl
§impl Serialize for StrategyPnl
impl Serialize for StrategyPnl
impl Eq for StrategyPnl
impl StructuralPartialEq for StrategyPnl
Auto Trait Implementations§
impl Freeze for StrategyPnl
impl RefUnwindSafe for StrategyPnl
impl Send for StrategyPnl
impl Sync for StrategyPnl
impl Unpin for StrategyPnl
impl UnsafeUnpin for StrategyPnl
impl UnwindSafe for StrategyPnl
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)