/*
* OANDA v20 API
*
* The full OANDA v20 API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more.
*
* The version of the OpenAPI document: 3.0.25
* Contact: api@oanda.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TradesResponse {
/// The list of Trade detail objects
#[serde(rename = "trades", skip_serializing_if = "Option::is_none")]
pub trades: Option<Vec<models::Trade>>,
/// The ID of the most recent Transaction created for the Account
#[serde(rename = "lastTransactionID", skip_serializing_if = "Option::is_none")]
pub last_transaction_id: Option<i32>,
}
impl TradesResponse {
pub fn new() -> TradesResponse {
TradesResponse {
trades: None,
last_transaction_id: None,
}
}
}