pub enum RiskType {
Percent(f64),
Cash(f64),
}Expand description
How a risk threshold’s value is measured (strategy.risk.max_drawdown and
strategy.risk.max_intraday_loss).
Variants§
Trait Implementations§
impl Copy for RiskType
impl StructuralPartialEq for RiskType
Auto Trait Implementations§
impl Freeze for RiskType
impl RefUnwindSafe for RiskType
impl Send for RiskType
impl Sync for RiskType
impl Unpin for RiskType
impl UnsafeUnpin for RiskType
impl UnwindSafe for RiskType
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