tba_openapi_rust/models/
event_ranking.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 EventRanking {
16    /// List of rankings at the event.
17    #[serde(rename = "rankings")]
18    pub rankings: Vec<crate::models::EventRankingRankingsInner>,
19    /// List of special TBA-generated values provided in the `extra_stats` array for each item.
20    #[serde(rename = "extra_stats_info", skip_serializing_if = "Option::is_none")]
21    pub extra_stats_info: Option<Vec<crate::models::EventRankingExtraStatsInfoInner>>,
22    /// List of year-specific values provided in the `sort_orders` array for each team.
23    #[serde(rename = "sort_order_info")]
24    pub sort_order_info: Vec<crate::models::EventRankingSortOrderInfoInner>,
25}
26
27impl EventRanking {
28    pub fn new(rankings: Vec<crate::models::EventRankingRankingsInner>, sort_order_info: Vec<crate::models::EventRankingSortOrderInfoInner>) -> EventRanking {
29        EventRanking {
30            rankings,
31            extra_stats_info: None,
32            sort_order_info,
33        }
34    }
35}
36
37