tba_openapi_rust/models/
district_list.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 DistrictList {
16    /// The short identifier for the district.
17    #[serde(rename = "abbreviation")]
18    pub abbreviation: String,
19    /// The long name for the district.
20    #[serde(rename = "display_name")]
21    pub display_name: String,
22    /// Key for this district, e.g. `2016ne`.
23    #[serde(rename = "key")]
24    pub key: String,
25    /// Year this district participated.
26    #[serde(rename = "year")]
27    pub year: i32,
28}
29
30impl DistrictList {
31    pub fn new(abbreviation: String, display_name: String, key: String, year: i32) -> DistrictList {
32        DistrictList {
33            abbreviation,
34            display_name,
35            key,
36            year,
37        }
38    }
39}
40
41