tba_openapi_rust/models/
elimination_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 EliminationAlliance {
16    /// Alliance name, may be null.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    #[serde(rename = "backup", skip_serializing_if = "Option::is_none")]
20    pub backup: Option<Box<crate::models::EliminationAllianceBackup>>,
21    /// List of teams that declined the alliance.
22    #[serde(rename = "declines", skip_serializing_if = "Option::is_none")]
23    pub declines: Option<Vec<String>>,
24    /// List of team keys picked for the alliance. First pick is captain.
25    #[serde(rename = "picks")]
26    pub picks: Vec<String>,
27    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
28    pub status: Option<Box<crate::models::EliminationAllianceStatus>>,
29}
30
31impl EliminationAlliance {
32    pub fn new(picks: Vec<String>) -> EliminationAlliance {
33        EliminationAlliance {
34            name: None,
35            backup: None,
36            declines: None,
37            picks,
38            status: None,
39        }
40    }
41}
42
43