pub enum TradeSlotState {
Vacant,
Pending {
side: Side,
requested_price: Option<f64>,
stoploss: Option<f64>,
},
Open {
side: Side,
entry_price: f64,
remaining_size: f64,
stoploss: Option<f64>,
},
}Variants§
Trait Implementations§
Source§impl Clone for TradeSlotState
impl Clone for TradeSlotState
Source§fn clone(&self) -> TradeSlotState
fn clone(&self) -> TradeSlotState
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 TradeSlotState
impl Debug for TradeSlotState
Source§impl PartialEq for TradeSlotState
impl PartialEq for TradeSlotState
impl StructuralPartialEq for TradeSlotState
Auto Trait Implementations§
impl Freeze for TradeSlotState
impl RefUnwindSafe for TradeSlotState
impl Send for TradeSlotState
impl Sync for TradeSlotState
impl Unpin for TradeSlotState
impl UnsafeUnpin for TradeSlotState
impl UnwindSafe for TradeSlotState
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