pub struct MaxDrawdownRule {
pub threshold_pct: Decimal,
}Expand description
Triggers a breach when drawdown exceeds a threshold percentage.
Fields§
§threshold_pct: DecimalThe maximum allowed drawdown percentage (e.g., dec!(10) = 10%).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaxDrawdownRule
impl RefUnwindSafe for MaxDrawdownRule
impl Send for MaxDrawdownRule
impl Sync for MaxDrawdownRule
impl Unpin for MaxDrawdownRule
impl UnsafeUnpin for MaxDrawdownRule
impl UnwindSafe for MaxDrawdownRule
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