pub struct OrderOperationResponse {
pub client_order_id: Uuid,
pub status: String,
}Expand description
The acknowledgement of an asynchronous order command (place, cancel, edit).
It means the broker took the request. It does not say the order is working or filled. The state
comes on the order events channel or from
BcsHttpClient::get_order.
§Examples
use brokapi_bcs_protocol::http::models::OrderOperationResponse;
let ack: OrderOperationResponse = serde_json::from_str(
r#"{"clientOrderId":"550e8400-e29b-41d4-a716-446655440000","status":"OK"}"#,
)?;
assert_eq!(ack.status, "OK");Fields§
§client_order_id: UuidThe id you sent: the id of the order for a placement, of the request for a cancel.
status: StringCompletion status text of the broker. The docs do not list its values.
Trait Implementations§
Source§impl Clone for OrderOperationResponse
impl Clone for OrderOperationResponse
Source§fn clone(&self) -> OrderOperationResponse
fn clone(&self) -> OrderOperationResponse
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 OrderOperationResponse
impl Debug for OrderOperationResponse
Source§impl<'de> Deserialize<'de> for OrderOperationResponse
impl<'de> Deserialize<'de> for OrderOperationResponse
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 OrderOperationResponse
impl RefUnwindSafe for OrderOperationResponse
impl Send for OrderOperationResponse
impl Sync for OrderOperationResponse
impl Unpin for OrderOperationResponse
impl UnsafeUnpin for OrderOperationResponse
impl UnwindSafe for OrderOperationResponse
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