Skip to main content

oanda_v20_openapi/models/
order_extensions_response.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 OrderExtensionsResponse {
16    /// The ID of the most recent Transaction created for the Account
17    #[serde(rename = "lastTransactionID", skip_serializing_if = "Option::is_none")]
18    pub last_transaction_id: Option<String>,
19    /// The IDs of all Transactions that were created while satisfying the request.
20    #[serde(rename = "relatedTransactionIDs", skip_serializing_if = "Option::is_none")]
21    pub related_transaction_ids: Option<Vec<i32>>,
22    #[serde(rename = "orderClientExtensionsModifyTransaction", skip_serializing_if = "Option::is_none")]
23    pub order_client_extensions_modify_transaction: Option<Box<models::OrderClientExtensionsModifyTransaction>>,
24}
25
26impl OrderExtensionsResponse {
27    pub fn new() -> OrderExtensionsResponse {
28        OrderExtensionsResponse {
29            last_transaction_id: None,
30            related_transaction_ids: None,
31            order_client_extensions_modify_transaction: None,
32        }
33    }
34}
35