pub struct BacktestReport<S, A> {
pub summary: BacktestSummary,
pub final_state: S,
pub value_curve: Vec<ValuePoint>,
pub steps: Vec<ReplayStep<A>>,
}Expand description
Full replay output.
Fields§
§summary: BacktestSummaryShort human-readable summary.
final_state: SState after the last event.
value_curve: Vec<ValuePoint>Value after every event.
steps: Vec<ReplayStep<A>>Captured decision traces.
Implementations§
Source§impl<S, A: Clone> BacktestReport<S, A>
impl<S, A: Clone> BacktestReport<S, A>
Sourcepub fn project(
&self,
policy: ProjectionPolicy,
) -> Result<BacktestProjection<A>, BacktestError>
pub fn project( &self, policy: ProjectionPolicy, ) -> Result<BacktestProjection<A>, BacktestError>
Project a report under policy without losing the summary.
Trait Implementations§
Source§impl<S: Clone, A: Clone> Clone for BacktestReport<S, A>
impl<S: Clone, A: Clone> Clone for BacktestReport<S, A>
Source§fn clone(&self) -> BacktestReport<S, A>
fn clone(&self) -> BacktestReport<S, A>
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<'de, S, A> Deserialize<'de> for BacktestReport<S, A>where
S: Deserialize<'de>,
A: Deserialize<'de>,
impl<'de, S, A> Deserialize<'de> for BacktestReport<S, A>where
S: Deserialize<'de>,
A: Deserialize<'de>,
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
Source§impl<S, A> Serialize for BacktestReport<S, A>
impl<S, A> Serialize for BacktestReport<S, A>
impl<S: PartialEq, A: PartialEq> StructuralPartialEq for BacktestReport<S, A>
Auto Trait Implementations§
impl<S, A> Freeze for BacktestReport<S, A>
impl<S, A> RefUnwindSafe for BacktestReport<S, A>
impl<S, A> Send for BacktestReport<S, A>
impl<S, A> Sync for BacktestReport<S, A>
impl<S, A> Unpin for BacktestReport<S, A>
impl<S, A> UnsafeUnpin for BacktestReport<S, A>
impl<S, A> UnwindSafe for BacktestReport<S, A>
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