oanda_v20_openapi/models/client_configure.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/// ClientConfigure : A ClientConfigure represents the configuration of an Account by a client.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ClientConfigure {
17 /// The client-provided alias for the Account.
18 #[serde(rename = "alias", skip_serializing_if = "Option::is_none")]
19 pub alias: Option<String>,
20 /// The margin rate override for the Account.
21 #[serde(rename = "marginRate", skip_serializing_if = "Option::is_none")]
22 pub margin_rate: Option<f64>,
23}
24
25impl ClientConfigure {
26 /// A ClientConfigure represents the configuration of an Account by a client.
27 pub fn new() -> ClientConfigure {
28 ClientConfigure {
29 alias: None,
30 margin_rate: None,
31 }
32 }
33}
34