tba_openapi_rust/models/
api_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 ApiStatus {
16    /// Year of the current FRC season.
17    #[serde(rename = "current_season")]
18    pub current_season: i32,
19    /// Maximum FRC season year for valid queries.
20    #[serde(rename = "max_season")]
21    pub max_season: i32,
22    /// True if the entire FMS API provided by FIRST is down.
23    #[serde(rename = "is_datafeed_down")]
24    pub is_datafeed_down: bool,
25    /// An array of strings containing event keys of any active events that are no longer updating.
26    #[serde(rename = "down_events")]
27    pub down_events: Vec<String>,
28    #[serde(rename = "ios")]
29    pub ios: Box<crate::models::ApiStatusAppVersion>,
30    #[serde(rename = "android")]
31    pub android: Box<crate::models::ApiStatusAppVersion>,
32}
33
34impl ApiStatus {
35    pub fn new(current_season: i32, max_season: i32, is_datafeed_down: bool, down_events: Vec<String>, ios: crate::models::ApiStatusAppVersion, android: crate::models::ApiStatusAppVersion) -> ApiStatus {
36        ApiStatus {
37            current_season,
38            max_season,
39            is_datafeed_down,
40            down_events,
41            ios: Box::new(ios),
42            android: Box::new(android),
43        }
44    }
45}
46
47