pub enum ActionTemplate {
Entry {
slot: String,
side: Expr,
order_type: OrderType,
price: Expr,
risk: Expr,
stoploss: Expr,
targets: Vec<Expr>,
entry_class: Option<String>,
},
Close {
slot: String,
},
ClosePartial {
slot: String,
ratio: Expr,
},
MoveStoplossToEntry {
slot: String,
},
ModifyStoploss {
slot: String,
price: Expr,
},
CancelPending {
slot: String,
},
}Variants§
Trait Implementations§
Source§impl Clone for ActionTemplate
impl Clone for ActionTemplate
Source§impl Debug for ActionTemplate
impl Debug for ActionTemplate
Source§impl<'de> Deserialize<'de> for ActionTemplate
impl<'de> Deserialize<'de> for ActionTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActionTemplate
impl PartialEq for ActionTemplate
Source§impl Serialize for ActionTemplate
impl Serialize for ActionTemplate
impl StructuralPartialEq for ActionTemplate
Auto Trait Implementations§
impl Freeze for ActionTemplate
impl RefUnwindSafe for ActionTemplate
impl Send for ActionTemplate
impl Sync for ActionTemplate
impl Unpin for ActionTemplate
impl UnsafeUnpin for ActionTemplate
impl UnwindSafe for ActionTemplate
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