tinkoff_api/models/order_response.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 OrderResponse {
16 #[serde(rename = "price")]
17 pub price: f64,
18 #[serde(rename = "quantity")]
19 pub quantity: i32,
20}
21
22impl OrderResponse {
23 pub fn new(price: f64, quantity: i32) -> OrderResponse {
24 OrderResponse {
25 price,
26 quantity,
27 }
28 }
29}
30
31