ib_client/models/
performance_tpps.rs

1/*
2 * Client Portal Web API
3 *
4 * Client Portal Web API
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// PerformanceTpps : Time period performance data
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PerformanceTpps {
17    /// array of dates, the length should be same as the length of returns inside data.
18    #[serde(rename = "dates", skip_serializing_if = "Option::is_none")]
19    pub dates: Option<Vec<String>>,
20    /// M means Month
21    #[serde(rename = "freq", skip_serializing_if = "Option::is_none")]
22    pub freq: Option<String>,
23    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
24    pub data: Option<Vec<crate::models::PerformanceCpsData>>,
25}
26
27impl PerformanceTpps {
28    /// Time period performance data
29    pub fn new() -> PerformanceTpps {
30        PerformanceTpps {
31            dates: None,
32            freq: None,
33            data: None,
34        }
35    }
36}
37
38