pub struct OrderStateListResponse {
pub client_order_id: String,
pub original_client_order_id: Option<String>,
pub data: Vec<OrderExecutionData>,
}Expand description
Answer of the synchronous methods and of GET /api/v1/orders: the order’s current state. Unlike
the deprecated status call, data is a list.
§Examples
use brokapi_bcs_protocol::http::models::OrderStateListResponse;
let state: OrderStateListResponse = serde_json::from_str(
r#"{"clientOrderId":"r-1","originalClientOrderId":"o-1","data":[{"orderStatus":"0"}]}"#,
)?;
assert_eq!(state.original_client_order_id.as_deref(), Some("o-1"));
assert_eq!(state.data.len(), 1);Fields§
§client_order_id: StringId of this request (not of the order).
original_client_order_id: Option<String>The clientOrderId you gave when you placed the order. Same as OrderStatusResponse::original_client_order_id.
data: Vec<OrderExecutionData>The reports of the order. Empty if the broker sent none.
Trait Implementations§
Source§impl Clone for OrderStateListResponse
impl Clone for OrderStateListResponse
Source§fn clone(&self) -> OrderStateListResponse
fn clone(&self) -> OrderStateListResponse
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 OrderStateListResponse
impl Debug for OrderStateListResponse
Source§impl<'de> Deserialize<'de> for OrderStateListResponse
impl<'de> Deserialize<'de> for OrderStateListResponse
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 OrderStateListResponse
impl RefUnwindSafe for OrderStateListResponse
impl Send for OrderStateListResponse
impl Sync for OrderStateListResponse
impl Unpin for OrderStateListResponse
impl UnsafeUnpin for OrderStateListResponse
impl UnwindSafe for OrderStateListResponse
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