#[non_exhaustive]pub struct CreateOrderResponse {
pub order_create_transaction: Transaction,
pub order_fill_transaction: Option<OrderFillTransaction>,
pub order_cancel_transaction: Option<OrderCancelTransaction>,
pub order_reissue_transaction: Option<Transaction>,
pub order_reissue_reject_transaction: Option<Transaction>,
pub related_transaction_ids: Vec<TransactionId>,
pub last_transaction_id: Option<TransactionId>,
pub location: Option<String>,
}Expand description
Response of Client::create_order (HTTP 201).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.order_create_transaction: TransactionThe transaction that created the order.
order_fill_transaction: Option<OrderFillTransaction>The transaction that filled the order (only for market orders, or orders that were immediately filled).
order_cancel_transaction: Option<OrderCancelTransaction>The transaction that cancelled the order (only when the order was immediately cancelled).
order_reissue_transaction: Option<Transaction>The transaction that reissued the order (only when the order was partially filled and reissued).
order_reissue_reject_transaction: Option<Transaction>The transaction that rejected the reissue of the order.
The IDs of all transactions created while satisfying the request.
last_transaction_id: Option<TransactionId>The ID of the most recent transaction created for the account.
location: Option<String>The Location response header: the URL of the created order.
Trait Implementations§
Source§impl Clone for CreateOrderResponse
impl Clone for CreateOrderResponse
Source§fn clone(&self) -> CreateOrderResponse
fn clone(&self) -> CreateOrderResponse
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 CreateOrderResponse
impl Debug for CreateOrderResponse
Source§impl<'de> Deserialize<'de> for CreateOrderResponse
impl<'de> Deserialize<'de> for CreateOrderResponse
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
Auto Trait Implementations§
impl Freeze for CreateOrderResponse
impl RefUnwindSafe for CreateOrderResponse
impl Send for CreateOrderResponse
impl Sync for CreateOrderResponse
impl Unpin for CreateOrderResponse
impl UnsafeUnpin for CreateOrderResponse
impl UnwindSafe for CreateOrderResponse
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