pub struct PerformanceMetricsSnapshot {
pub schema_version: u32,
pub mode: String,
pub scope: String,
pub run_started_at_ms: Option<i64>,
pub metrics: PerformanceMetrics,
pub benchmark: PerformanceBenchmark,
pub latest_equity: Option<BacktestEquityPoint>,
}Expand description
Serializable performance snapshot.
Fields§
§schema_version: u32Payload schema version.
mode: StringRun mode, such as backtest, paper, or live.
scope: StringScope name for the snapshot.
run_started_at_ms: Option<i64>Live/paper run start timestamp.
metrics: PerformanceMetricsCalculated metrics.
benchmark: PerformanceBenchmarkBenchmark context.
latest_equity: Option<BacktestEquityPoint>Latest equity point when available.
Trait Implementations§
Source§impl Clone for PerformanceMetricsSnapshot
impl Clone for PerformanceMetricsSnapshot
Source§fn clone(&self) -> PerformanceMetricsSnapshot
fn clone(&self) -> PerformanceMetricsSnapshot
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 PerformanceMetricsSnapshot
impl Debug for PerformanceMetricsSnapshot
Source§impl<'de> Deserialize<'de> for PerformanceMetricsSnapshot
impl<'de> Deserialize<'de> for PerformanceMetricsSnapshot
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 PerformanceMetricsSnapshot
impl RefUnwindSafe for PerformanceMetricsSnapshot
impl Send for PerformanceMetricsSnapshot
impl Sync for PerformanceMetricsSnapshot
impl Unpin for PerformanceMetricsSnapshot
impl UnsafeUnpin for PerformanceMetricsSnapshot
impl UnwindSafe for PerformanceMetricsSnapshot
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