Skip to main content

oanda_v20_openapi/models/
create_order_request.rs

1/*
2 * OANDA v20 API
3 *
4 * The full OANDA v20 API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more.
5 *
6 * The version of the OpenAPI document: 0.2.1
7 * Contact: jmicoud02@gmail.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreateOrderRequest {
16    /// The base Order specification used when requesting that an Order be created. Each specific Order-type extends this definition.
17    #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
18    pub order: Option<serde_json::Value>,
19}
20
21impl CreateOrderRequest {
22    pub fn new() -> CreateOrderRequest {
23        CreateOrderRequest {
24            order: None,
25        }
26    }
27}
28