tba_openapi_rust/models/
event_district_points.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
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct EventDistrictPoints {
16    /// Points gained for each team at the event. Stored as a key-value pair with the team key as the key, and an object describing the points as its value.
17    #[serde(rename = "points")]
18    pub points: ::std::collections::HashMap<String, crate::models::EventDistrictPointsPointsValue>,
19    /// Tiebreaker values for each team at the event. Stored as a key-value pair with the team key as the key, and an object describing the tiebreaker elements as its value.
20    #[serde(rename = "tiebreakers", skip_serializing_if = "Option::is_none")]
21    pub tiebreakers: Option<::std::collections::HashMap<String, crate::models::EventDistrictPointsTiebreakersValue>>,
22}
23
24impl EventDistrictPoints {
25    pub fn new(points: ::std::collections::HashMap<String, crate::models::EventDistrictPointsPointsValue>) -> EventDistrictPoints {
26        EventDistrictPoints {
27            points,
28            tiebreakers: None,
29        }
30    }
31}
32
33