pub enum PlaybookState {
Idle,
PendingEntry {
order_id: String,
placed_at: u64,
},
InPosition {
position_id: String,
entry_price: f64,
},
PendingExit {
order_id: String,
placed_at: u64,
},
}Variants§
Trait Implementations§
Source§impl Clone for PlaybookState
impl Clone for PlaybookState
Source§fn clone(&self) -> PlaybookState
fn clone(&self) -> PlaybookState
Returns a duplicate of the value. Read more
1.0.0 · 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 PlaybookState
impl Debug for PlaybookState
Source§impl<'de> Deserialize<'de> for PlaybookState
impl<'de> Deserialize<'de> for PlaybookState
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 PlaybookState
impl PartialEq for PlaybookState
Source§impl Serialize for PlaybookState
impl Serialize for PlaybookState
impl StructuralPartialEq for PlaybookState
Auto Trait Implementations§
impl Freeze for PlaybookState
impl RefUnwindSafe for PlaybookState
impl Send for PlaybookState
impl Sync for PlaybookState
impl Unpin for PlaybookState
impl UnsafeUnpin for PlaybookState
impl UnwindSafe for PlaybookState
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