tba_openapi_rust/models/
match_simple_alliances.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/// MatchSimpleAlliances : A list of alliances, the teams on the alliances, and their score.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct MatchSimpleAlliances {
17    #[serde(rename = "red", skip_serializing_if = "Option::is_none")]
18    pub red: Option<Box<crate::models::MatchAlliance>>,
19    #[serde(rename = "blue", skip_serializing_if = "Option::is_none")]
20    pub blue: Option<Box<crate::models::MatchAlliance>>,
21}
22
23impl MatchSimpleAlliances {
24    /// A list of alliances, the teams on the alliances, and their score.
25    pub fn new() -> MatchSimpleAlliances {
26        MatchSimpleAlliances {
27            red: None,
28            blue: None,
29        }
30    }
31}
32
33