tba_openapi_rust/models/
event_insights.rs

1/*
2 * The Blue Alliance API v3
3 *
4 * # Overview    Information and statistics about FIRST Robotics Competition teams and events.   # Authentication   All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account).
5 *
6 * The version of the OpenAPI document: 3.8.2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// EventInsights : A year-specific event insight object expressed as a JSON string, separated in to `qual` and `playoff` fields. See also Event_Insights_2016, Event_Insights_2017, etc.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct EventInsights {
17    /// Inights for the qualification round of an event
18    #[serde(rename = "qual", skip_serializing_if = "Option::is_none")]
19    pub qual: Option<serde_json::Value>,
20    /// Insights for the playoff round of an event
21    #[serde(rename = "playoff", skip_serializing_if = "Option::is_none")]
22    pub playoff: Option<serde_json::Value>,
23}
24
25impl EventInsights {
26    /// A year-specific event insight object expressed as a JSON string, separated in to `qual` and `playoff` fields. See also Event_Insights_2016, Event_Insights_2017, etc.
27    pub fn new() -> EventInsights {
28        EventInsights {
29            qual: None,
30            playoff: None,
31        }
32    }
33}
34
35