tba_openapi_rust/models/
team_event_status.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 TeamEventStatus {
16    #[serde(rename = "qual", skip_serializing_if = "Option::is_none")]
17    pub qual: Option<Box<crate::models::TeamEventStatusRank>>,
18    #[serde(rename = "alliance", skip_serializing_if = "Option::is_none")]
19    pub alliance: Option<Box<crate::models::TeamEventStatusAlliance>>,
20    #[serde(rename = "playoff", skip_serializing_if = "Option::is_none")]
21    pub playoff: Option<Box<crate::models::TeamEventStatusPlayoff>>,
22    /// An HTML formatted string suitable for display to the user containing the team's alliance pick status.
23    #[serde(rename = "alliance_status_str", skip_serializing_if = "Option::is_none")]
24    pub alliance_status_str: Option<String>,
25    /// An HTML formatter string suitable for display to the user containing the team's playoff status.
26    #[serde(rename = "playoff_status_str", skip_serializing_if = "Option::is_none")]
27    pub playoff_status_str: Option<String>,
28    /// An HTML formatted string suitable for display to the user containing the team's overall status summary of the event.
29    #[serde(rename = "overall_status_str", skip_serializing_if = "Option::is_none")]
30    pub overall_status_str: Option<String>,
31    /// TBA match key for the next match the team is scheduled to play in at this event, or null.
32    #[serde(rename = "next_match_key", skip_serializing_if = "Option::is_none")]
33    pub next_match_key: Option<String>,
34    /// TBA match key for the last match the team played in at this event, or null.
35    #[serde(rename = "last_match_key", skip_serializing_if = "Option::is_none")]
36    pub last_match_key: Option<String>,
37}
38
39impl TeamEventStatus {
40    pub fn new() -> TeamEventStatus {
41        TeamEventStatus {
42            qual: None,
43            alliance: None,
44            playoff: None,
45            alliance_status_str: None,
46            playoff_status_str: None,
47            overall_status_str: None,
48            next_match_key: None,
49            last_match_key: None,
50        }
51    }
52}
53
54