1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* The Blue Alliance API v3
*
* # 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).
*
* The version of the OpenAPI document: 3.8.2
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct TeamEventStatusAlliance {
/// Alliance name, may be null.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Alliance number.
#[serde(rename = "number")]
pub number: i32,
#[serde(rename = "backup", skip_serializing_if = "Option::is_none")]
pub backup: Option<Box<crate::models::TeamEventStatusAllianceBackup>>,
/// Order the team was picked in the alliance from 0-2, with 0 being alliance captain.
#[serde(rename = "pick")]
pub pick: i32,
}
impl TeamEventStatusAlliance {
pub fn new(number: i32, pick: i32) -> TeamEventStatusAlliance {
TeamEventStatusAlliance {
name: None,
number,
backup: None,
pick,
}
}
}