tba_openapi_rust/models/
match_score_breakdown_2015.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/// MatchScoreBreakdown2015 : See the 2015 FMS API documentation for a description of each value
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct MatchScoreBreakdown2015 {
17    #[serde(rename = "blue", skip_serializing_if = "Option::is_none")]
18    pub blue: Option<Box<crate::models::MatchScoreBreakdown2015Alliance>>,
19    #[serde(rename = "red", skip_serializing_if = "Option::is_none")]
20    pub red: Option<Box<crate::models::MatchScoreBreakdown2015Alliance>>,
21    #[serde(rename = "coopertition", skip_serializing_if = "Option::is_none")]
22    pub coopertition: Option<Coopertition>,
23    #[serde(rename = "coopertition_points", skip_serializing_if = "Option::is_none")]
24    pub coopertition_points: Option<i32>,
25}
26
27impl MatchScoreBreakdown2015 {
28    /// See the 2015 FMS API documentation for a description of each value
29    pub fn new() -> MatchScoreBreakdown2015 {
30        MatchScoreBreakdown2015 {
31            blue: None,
32            red: None,
33            coopertition: None,
34            coopertition_points: None,
35        }
36    }
37}
38
39/// 
40#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
41pub enum Coopertition {
42    #[serde(rename = "None")]
43    None,
44    #[serde(rename = "Unknown")]
45    Unknown,
46    #[serde(rename = "Stack")]
47    Stack,
48}
49
50impl Default for Coopertition {
51    fn default() -> Coopertition {
52        Self::None
53    }
54}
55