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
50
51
52
/*
* 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: 0.2.1
* Contact: jmicoud02@gmail.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransactionsResponse {
/// A date and time value using either RFC3339 or UNIX time representation. The RFC 3339 representation is a string conforming to https://tools.ietf.org/rfc/rfc3339.txt. The Unix representation is a string representing the number of seconds since the Unix Epoch (January 1st, 1970 at UTC). The value is a fractional number, where the fractional part represents a fraction of a second (up to nine decimal places).
#[serde(rename = "from", skip_serializing_if = "Option::is_none")]
pub from: Option<String>,
/// A date and time value using either RFC3339 or UNIX time representation. The RFC 3339 representation is a string conforming to https://tools.ietf.org/rfc/rfc3339.txt. The Unix representation is a string representing the number of seconds since the Unix Epoch (January 1st, 1970 at UTC). The value is a fractional number, where the fractional part represents a fraction of a second (up to nine decimal places).
#[serde(rename = "to", skip_serializing_if = "Option::is_none")]
pub to: Option<String>,
/// The pageSize provided in the request
#[serde(rename = "pageSize", skip_serializing_if = "Option::is_none")]
pub page_size: Option<i32>,
/// The Transaction-type filter provided in the request
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<Vec<models::TransactionType>>,
/// The number of Transactions that are contained in the pages returned
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
pub count: Option<i32>,
/// The list of URLs that represent idrange queries providing the data for each page in the query results
#[serde(rename = "pages", skip_serializing_if = "Option::is_none")]
pub pages: Option<Vec<String>>,
/// 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<String>,
}
impl TransactionsResponse {
pub fn new() -> TransactionsResponse {
TransactionsResponse {
from: None,
to: None,
page_size: None,
r#type: None,
count: None,
pages: None,
last_transaction_id: None,
}
}
}