pub enum Strategy {
StopLoss(Box<ConditionalTrigger>),
TakeProfit(Box<ConditionalTrigger>),
TrailingStop(Box<TrailingStopTrigger>),
Twap(Box<TwapTrigger>),
Ladder(Box<LadderTrigger>),
}Expand description
Required trigger strategy.
Variants§
StopLoss(Box<ConditionalTrigger>)
TakeProfit(Box<ConditionalTrigger>)
TrailingStop(Box<TrailingStopTrigger>)
Twap(Box<TwapTrigger>)
Ladder(Box<LadderTrigger>)
Trait Implementations§
Source§impl From<LadderTrigger> for Strategy
impl From<LadderTrigger> for Strategy
Source§fn from(v: LadderTrigger) -> Self
fn from(v: LadderTrigger) -> Self
Converts to this type from the input type.
Source§impl From<TrailingStopTrigger> for Strategy
impl From<TrailingStopTrigger> for Strategy
Source§fn from(v: TrailingStopTrigger) -> Self
fn from(v: TrailingStopTrigger) -> Self
Converts to this type from the input type.
Source§impl From<TwapTrigger> for Strategy
impl From<TwapTrigger> for Strategy
Source§fn from(v: TwapTrigger) -> Self
fn from(v: TwapTrigger) -> Self
Converts to this type from the input type.
impl Oneof for Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnsafeUnpin for Strategy
impl UnwindSafe for Strategy
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