tinkoff_api/models/portfolio.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 Portfolio {
16 #[serde(rename = "positions")]
17 pub positions: Vec<crate::models::PortfolioPosition>,
18}
19
20impl Portfolio {
21 pub fn new(positions: Vec<crate::models::PortfolioPosition>) -> Portfolio {
22 Portfolio {
23 positions,
24 }
25 }
26}
27
28