pub struct ScenarioResult {
pub name: String,
pub cycles: usize,
pub total_trades: usize,
pub initial_value: Decimal,
pub final_value: Decimal,
pub return_percent: Decimal,
pub cycle_results: Vec<RebalanceResult>,
pub passed: bool,
pub failure_reason: Option<String>,
}Expand description
Result of running a scenario.
Fields§
§name: StringName of the scenario.
cycles: usizeNumber of rebalancing cycles executed.
total_trades: usizeTotal number of trades executed.
initial_value: DecimalInitial portfolio value.
final_value: DecimalFinal portfolio value.
return_percent: DecimalReturn percentage.
cycle_results: Vec<RebalanceResult>Results from each rebalancing cycle.
passed: boolWhether the scenario passed.
failure_reason: Option<String>Failure reason if not passed.
Implementations§
Trait Implementations§
Source§impl Clone for ScenarioResult
impl Clone for ScenarioResult
Auto Trait Implementations§
impl Forget for ScenarioResult
impl Freeze for ScenarioResult
impl Move for ScenarioResult
impl RefUnwindSafe for ScenarioResult
impl Send for ScenarioResult
impl Sync for ScenarioResult
impl Unpin for ScenarioResult
impl UnsafeUnpin for ScenarioResult
impl UnwindSafe for ScenarioResult
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