pub struct ScaleInStep {
pub trigger_price: f64,
pub fraction: f64,
}Expand description
One scale-in step: fraction of the total planned size to add once price reaches
trigger_price.
Fields§
§trigger_price: f64§fraction: f64Trait Implementations§
Source§impl Clone for ScaleInStep
impl Clone for ScaleInStep
Source§fn clone(&self) -> ScaleInStep
fn clone(&self) -> ScaleInStep
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 moreimpl Copy for ScaleInStep
Source§impl Debug for ScaleInStep
impl Debug for ScaleInStep
Source§impl PartialEq for ScaleInStep
impl PartialEq for ScaleInStep
impl StructuralPartialEq for ScaleInStep
Auto Trait Implementations§
impl Freeze for ScaleInStep
impl RefUnwindSafe for ScaleInStep
impl Send for ScaleInStep
impl Sync for ScaleInStep
impl Unpin for ScaleInStep
impl UnsafeUnpin for ScaleInStep
impl UnwindSafe for ScaleInStep
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