pub enum StopLeg {
StopLoss(Box<StopLossPolicy>),
TrailingStop(Box<TrailingStopPolicy>),
}Expand description
At most one stop leg can be configured for attached risk.
Variants§
StopLoss(Box<StopLossPolicy>)
TrailingStop(Box<TrailingStopPolicy>)
Trait Implementations§
Source§impl From<StopLossPolicy> for StopLeg
impl From<StopLossPolicy> for StopLeg
Source§fn from(v: StopLossPolicy) -> Self
fn from(v: StopLossPolicy) -> Self
Converts to this type from the input type.
Source§impl From<TrailingStopPolicy> for StopLeg
impl From<TrailingStopPolicy> for StopLeg
Source§fn from(v: TrailingStopPolicy) -> Self
fn from(v: TrailingStopPolicy) -> Self
Converts to this type from the input type.
impl Oneof for StopLeg
impl StructuralPartialEq for StopLeg
Auto Trait Implementations§
impl Freeze for StopLeg
impl RefUnwindSafe for StopLeg
impl Send for StopLeg
impl Sync for StopLeg
impl Unpin for StopLeg
impl UnsafeUnpin for StopLeg
impl UnwindSafe for StopLeg
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