tinkoff_api/models/money_amount.rs
1/*
2 * OpenAPI
3 *
4 * tinkoff.ru/invest OpenAPI.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * Contact: al.a.volkov@tinkoff.ru
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MoneyAmount {
16 #[serde(rename = "currency")]
17 pub currency: crate::models::Currency,
18 #[serde(rename = "value")]
19 pub value: f64,
20}
21
22impl MoneyAmount {
23 pub fn new(currency: crate::models::Currency, value: f64) -> MoneyAmount {
24 MoneyAmount {
25 currency,
26 value,
27 }
28 }
29}
30
31