tba_openapi_rust/models/
event_oprs.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/// EventOprs : OPR, DPR, and CCWM for teams at the event.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct EventOprs {
17    /// A key-value pair with team key (eg `frc254`) as key and OPR as value.
18    #[serde(rename = "oprs", skip_serializing_if = "Option::is_none")]
19    pub oprs: Option<::std::collections::HashMap<String, f32>>,
20    /// A key-value pair with team key (eg `frc254`) as key and DPR as value.
21    #[serde(rename = "dprs", skip_serializing_if = "Option::is_none")]
22    pub dprs: Option<::std::collections::HashMap<String, f32>>,
23    /// A key-value pair with team key (eg `frc254`) as key and CCWM as value.
24    #[serde(rename = "ccwms", skip_serializing_if = "Option::is_none")]
25    pub ccwms: Option<::std::collections::HashMap<String, f32>>,
26}
27
28impl EventOprs {
29    /// OPR, DPR, and CCWM for teams at the event.
30    pub fn new() -> EventOprs {
31        EventOprs {
32            oprs: None,
33            dprs: None,
34            ccwms: None,
35        }
36    }
37}
38
39