1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Client Portal Web API
*
* Client Poral Web API
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct Body4 {
/// Notes for bracket orders: 1. Children orders will not have its own \"cOID\", so please donot pass \"cOID\" parameter in child order.Instead, they will have a \"parentId\" which must be equal to \"cOID\" of parent. 2. When you cancel a parent order, it will cancel all bracket orders, when you cancel one child order, it will also cancel its sibling order.
#[serde(rename = "orders")]
orders: Option<Vec<::models::OrderRequest>>
}
impl Body4 {
pub fn new() -> Body4 {
Body4 {
orders: None
}
}
pub fn set_orders(&mut self, orders: Vec<::models::OrderRequest>) {
self.orders = Some(orders);
}
pub fn with_orders(mut self, orders: Vec<::models::OrderRequest>) -> Body4 {
self.orders = Some(orders);
self
}
pub fn orders(&self) -> Option<&Vec<::models::OrderRequest>> {
self.orders.as_ref()
}
pub fn reset_orders(&mut self) {
self.orders = None;
}
}