tba_openapi_rust/models/
team_event_status_alliance.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 TeamEventStatusAlliance {
16    /// Alliance name, may be null.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// Alliance number.
20    #[serde(rename = "number")]
21    pub number: i32,
22    #[serde(rename = "backup", skip_serializing_if = "Option::is_none")]
23    pub backup: Option<Box<crate::models::TeamEventStatusAllianceBackup>>,
24    /// Order the team was picked in the alliance from 0-2, with 0 being alliance captain.
25    #[serde(rename = "pick")]
26    pub pick: i32,
27}
28
29impl TeamEventStatusAlliance {
30    pub fn new(number: i32, pick: i32) -> TeamEventStatusAlliance {
31        TeamEventStatusAlliance {
32            name: None,
33            number,
34            backup: None,
35            pick,
36        }
37    }
38}
39
40