pub struct PendingOrderSnapshot {
pub position_id: String,
pub action_id: Option<String>,
pub symbol: String,
pub side: Side,
pub order_type: OrderType,
pub requested_price: Option<f64>,
pub size: f64,
pub signal_ts: Option<NaiveDateTime>,
pub effective_ts: Option<NaiveDateTime>,
pub initial_stop: Option<f64>,
pub group: Option<String>,
pub trade_id: Option<String>,
}Expand description
Serializable state for an order that has not filled at the end of a run.
Fields§
§position_id: String§action_id: Option<String>§symbol: String§side: Side§order_type: OrderType§requested_price: Option<f64>§size: f64§signal_ts: Option<NaiveDateTime>§effective_ts: Option<NaiveDateTime>§initial_stop: Option<f64>§group: Option<String>§trade_id: Option<String>Trait Implementations§
Source§impl Clone for PendingOrderSnapshot
impl Clone for PendingOrderSnapshot
Source§fn clone(&self) -> PendingOrderSnapshot
fn clone(&self) -> PendingOrderSnapshot
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 PendingOrderSnapshot
impl Debug for PendingOrderSnapshot
Source§impl Default for PendingOrderSnapshot
impl Default for PendingOrderSnapshot
Source§impl<'de> Deserialize<'de> for PendingOrderSnapshotwhere
PendingOrderSnapshot: Default,
impl<'de> Deserialize<'de> for PendingOrderSnapshotwhere
PendingOrderSnapshot: Default,
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 PendingOrderSnapshot
impl PartialEq for PendingOrderSnapshot
Source§impl Serialize for PendingOrderSnapshot
impl Serialize for PendingOrderSnapshot
impl StructuralPartialEq for PendingOrderSnapshot
Auto Trait Implementations§
impl Freeze for PendingOrderSnapshot
impl RefUnwindSafe for PendingOrderSnapshot
impl Send for PendingOrderSnapshot
impl Sync for PendingOrderSnapshot
impl Unpin for PendingOrderSnapshot
impl UnsafeUnpin for PendingOrderSnapshot
impl UnwindSafe for PendingOrderSnapshot
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