Skip to main content

oanda_v20_openapi/models/
account_changes_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 AccountChangesResponse {
16    #[serde(rename = "changes", skip_serializing_if = "Option::is_none")]
17    pub changes: Option<Box<models::AccountChanges>>,
18    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
19    pub state: Option<Box<models::AccountChangesState>>,
20    /// The ID of the last Transaction created for the Account. This Transaction ID should be used for future poll requests, as the client has already observed all changes up to and including it.
21    #[serde(rename = "lastTransactionID", skip_serializing_if = "Option::is_none")]
22    pub last_transaction_id: Option<String>,
23}
24
25impl AccountChangesResponse {
26    pub fn new() -> AccountChangesResponse {
27        AccountChangesResponse {
28            changes: None,
29            state: None,
30            last_transaction_id: None,
31        }
32    }
33}
34