pub struct BatchCloseResult {
pub close_order_id: Option<String>,
pub error: Option<BatchCloseError>,
pub position_id: Option<String>,
pub status: Option<String>,
pub submitted_quantity: Option<String>,
}Expand description
BatchCloseResult
JSON schema
{
"type": "object",
"properties": {
"closeOrderId": {
"description": "Close order UUID. Present when the close order was accepted.",
"type": [
"string",
"null"
]
},
"error": {
"description": "Failure detail. Present when this position could not be closed.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/BatchCloseError"
}
]
}
]
},
"positionId": {
"description": "Position UUID this result is for.",
"type": [
"string",
"null"
]
},
"status": {
"description": "Close outcome: SUCCESS, PARTIAL, or PENDING. Present when accepted.",
"type": [
"string",
"null"
]
},
"submittedQuantity": {
"description": "Quantity submitted on the close order. Present when accepted.",
"type": [
"string",
"null"
]
}
}
}Fields§
§close_order_id: Option<String>Close order UUID. Present when the close order was accepted.
error: Option<BatchCloseError>Failure detail. Present when this position could not be closed.
position_id: Option<String>Position UUID this result is for.
status: Option<String>Close outcome: SUCCESS, PARTIAL, or PENDING. Present when accepted.
submitted_quantity: Option<String>Quantity submitted on the close order. Present when accepted.
Trait Implementations§
Source§impl Clone for BatchCloseResult
impl Clone for BatchCloseResult
Source§fn clone(&self) -> BatchCloseResult
fn clone(&self) -> BatchCloseResult
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 BatchCloseResult
impl Debug for BatchCloseResult
Source§impl Default for BatchCloseResult
impl Default for BatchCloseResult
Source§impl<'de> Deserialize<'de> for BatchCloseResult
impl<'de> Deserialize<'de> for BatchCloseResult
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 BatchCloseResult
impl RefUnwindSafe for BatchCloseResult
impl Send for BatchCloseResult
impl Sync for BatchCloseResult
impl Unpin for BatchCloseResult
impl UnsafeUnpin for BatchCloseResult
impl UnwindSafe for BatchCloseResult
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