Struct OrderIntent
pub struct OrderIntent {
pub client_intent_id: ClientIntentId,
pub action: IntentAction,
pub order_type: OrderType,
pub side: Side,
pub instrument_id: InstrumentId,
pub venue_id: VenueId,
pub price: Option<Price>,
pub qty: Option<Qty>,
pub reduce_only: bool,
pub time_in_force: Option<TimeInForce>,
pub tags: BTreeMap<String, String>,
}Expand description
An order intent emitted by a strategy.
Fields§
§client_intent_id: ClientIntentId§action: IntentAction§order_type: OrderType§side: Side§instrument_id: InstrumentId§venue_id: VenueId§price: Option<Price>§qty: Option<Qty>§reduce_only: bool§time_in_force: Option<TimeInForce>Trait Implementations§
§impl Clone for OrderIntent
impl Clone for OrderIntent
§fn clone(&self) -> OrderIntent
fn clone(&self) -> OrderIntent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for OrderIntent
impl Debug for OrderIntent
§impl<'de> Deserialize<'de> for OrderIntent
impl<'de> Deserialize<'de> for OrderIntent
§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
§impl PartialEq for OrderIntent
impl PartialEq for OrderIntent
§impl Serialize for OrderIntent
impl Serialize for OrderIntent
impl Eq for OrderIntent
impl StructuralPartialEq for OrderIntent
Auto Trait Implementations§
impl Freeze for OrderIntent
impl RefUnwindSafe for OrderIntent
impl Send for OrderIntent
impl Sync for OrderIntent
impl Unpin for OrderIntent
impl UnsafeUnpin for OrderIntent
impl UnwindSafe for OrderIntent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)