pub struct ThresholdParams {
pub price_threshold: Decimal,
pub il_threshold: Decimal,
pub rebalance_on_out_of_range: bool,
}Expand description
Parameters for a threshold-based rebalancing strategy.
Fields§
§price_threshold: DecimalPrice deviation threshold to trigger rebalance.
il_threshold: DecimalIL threshold to trigger rebalance.
rebalance_on_out_of_range: boolWhether to rebalance when out of range.
Trait Implementations§
Source§impl Clone for ThresholdParams
impl Clone for ThresholdParams
Source§fn clone(&self) -> ThresholdParams
fn clone(&self) -> ThresholdParams
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 ThresholdParams
impl Debug for ThresholdParams
Auto Trait Implementations§
impl Freeze for ThresholdParams
impl RefUnwindSafe for ThresholdParams
impl Send for ThresholdParams
impl Sync for ThresholdParams
impl Unpin for ThresholdParams
impl UnsafeUnpin for ThresholdParams
impl UnwindSafe for ThresholdParams
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