Struct OrderIntent
pub struct OrderIntent {
pub client_intent_id: ClientIntentId,
pub action: IntentAction,
pub target_order_id: Option<OrderId>,
pub order_type: OrderType,
pub side: Side,
pub price: Option<Price>,
pub qty: Option<Qty>,
pub reduce_only: bool,
pub time_in_force: Option<TimeInForce>,
pub tags: HashMap<String, String>,
}Expand description
§8.5 — Order intent (canonical).
Fields§
§client_intent_id: ClientIntentId§action: IntentAction§target_order_id: Option<OrderId>Target order for Amend/Cancel actions. None for Place/CancelAll.
order_type: OrderType§side: Side§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 Serialize for OrderIntent
impl Serialize 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)