Skip to main content

oanda_v20_openapi/models/
client_extensions.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/// ClientExtensions : A ClientExtensions object allows a client to attach a clientID, tag and comment to Orders and Trades in their Account.  Do not set, modify, or delete this field if your account is associated with MT4.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ClientExtensions {
17    /// The Client ID of the Order/Trade
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// A tag associated with the Order/Trade
21    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
22    pub tag: Option<String>,
23    /// A comment associated with the Order/Trade
24    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
25    pub comment: Option<String>,
26}
27
28impl ClientExtensions {
29    /// A ClientExtensions object allows a client to attach a clientID, tag and comment to Orders and Trades in their Account.  Do not set, modify, or delete this field if your account is associated with MT4.
30    pub fn new() -> ClientExtensions {
31        ClientExtensions {
32            id: None,
33            tag: None,
34            comment: None,
35        }
36    }
37}
38