tba_openapi_rust/models/
event_insights_2017.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/// EventInsights2017 : Insights for FIRST STEAMWORKS qualification and elimination matches.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct EventInsights2017 {
17    /// Average foul score.
18    #[serde(rename = "average_foul_score")]
19    pub average_foul_score: f32,
20    /// Average fuel points scored.
21    #[serde(rename = "average_fuel_points")]
22    pub average_fuel_points: f32,
23    /// Average fuel points scored during auto.
24    #[serde(rename = "average_fuel_points_auto")]
25    pub average_fuel_points_auto: f32,
26    /// Average fuel points scored during teleop.
27    #[serde(rename = "average_fuel_points_teleop")]
28    pub average_fuel_points_teleop: f32,
29    /// Average points scored in the high goal.
30    #[serde(rename = "average_high_goals")]
31    pub average_high_goals: f32,
32    /// Average points scored in the high goal during auto.
33    #[serde(rename = "average_high_goals_auto")]
34    pub average_high_goals_auto: f32,
35    /// Average points scored in the high goal during teleop.
36    #[serde(rename = "average_high_goals_teleop")]
37    pub average_high_goals_teleop: f32,
38    /// Average points scored in the low goal.
39    #[serde(rename = "average_low_goals")]
40    pub average_low_goals: f32,
41    /// Average points scored in the low goal during auto.
42    #[serde(rename = "average_low_goals_auto")]
43    pub average_low_goals_auto: f32,
44    /// Average points scored in the low goal during teleop.
45    #[serde(rename = "average_low_goals_teleop")]
46    pub average_low_goals_teleop: f32,
47    /// Average mobility points scored during auto.
48    #[serde(rename = "average_mobility_points_auto")]
49    pub average_mobility_points_auto: f32,
50    /// Average points scored during auto.
51    #[serde(rename = "average_points_auto")]
52    pub average_points_auto: f32,
53    /// Average points scored during teleop.
54    #[serde(rename = "average_points_teleop")]
55    pub average_points_teleop: f32,
56    /// Average rotor points scored.
57    #[serde(rename = "average_rotor_points")]
58    pub average_rotor_points: f32,
59    /// Average rotor points scored during auto.
60    #[serde(rename = "average_rotor_points_auto")]
61    pub average_rotor_points_auto: f32,
62    /// Average rotor points scored during teleop.
63    #[serde(rename = "average_rotor_points_teleop")]
64    pub average_rotor_points_teleop: f32,
65    /// Average score.
66    #[serde(rename = "average_score")]
67    pub average_score: f32,
68    /// Average takeoff points scored during teleop.
69    #[serde(rename = "average_takeoff_points_teleop")]
70    pub average_takeoff_points_teleop: f32,
71    /// Average margin of victory.
72    #[serde(rename = "average_win_margin")]
73    pub average_win_margin: f32,
74    /// Average winning score.
75    #[serde(rename = "average_win_score")]
76    pub average_win_score: f32,
77    /// An array with three values, kPa scored, match key from the match with the high kPa, and the name of the match
78    #[serde(rename = "high_kpa")]
79    pub high_kpa: Vec<String>,
80    /// An array with three values, high score, match key from the match with the high score, and the name of the match
81    #[serde(rename = "high_score")]
82    pub high_score: Vec<String>,
83    /// An array with three values, number of times kPa bonus achieved, number of opportunities to bonus, and percentage.
84    #[serde(rename = "kpa_achieved")]
85    pub kpa_achieved: Vec<f32>,
86    /// An array with three values, number of times mobility bonus achieved, number of opportunities to bonus, and percentage.
87    #[serde(rename = "mobility_counts")]
88    pub mobility_counts: Vec<f32>,
89    /// An array with three values, number of times rotor 1 engaged, number of opportunities to engage, and percentage.
90    #[serde(rename = "rotor_1_engaged")]
91    pub rotor_1_engaged: Vec<f32>,
92    /// An array with three values, number of times rotor 1 engaged in auto, number of opportunities to engage in auto, and percentage.
93    #[serde(rename = "rotor_1_engaged_auto")]
94    pub rotor_1_engaged_auto: Vec<f32>,
95    /// An array with three values, number of times rotor 2 engaged, number of opportunities to engage, and percentage.
96    #[serde(rename = "rotor_2_engaged")]
97    pub rotor_2_engaged: Vec<f32>,
98    /// An array with three values, number of times rotor 2 engaged in auto, number of opportunities to engage in auto, and percentage.
99    #[serde(rename = "rotor_2_engaged_auto")]
100    pub rotor_2_engaged_auto: Vec<f32>,
101    /// An array with three values, number of times rotor 3 engaged, number of opportunities to engage, and percentage.
102    #[serde(rename = "rotor_3_engaged")]
103    pub rotor_3_engaged: Vec<f32>,
104    /// An array with three values, number of times rotor 4 engaged, number of opportunities to engage, and percentage.
105    #[serde(rename = "rotor_4_engaged")]
106    pub rotor_4_engaged: Vec<f32>,
107    /// An array with three values, number of times takeoff was counted, number of opportunities to takeoff, and percentage.
108    #[serde(rename = "takeoff_counts")]
109    pub takeoff_counts: Vec<f32>,
110    /// An array with three values, number of times a unicorn match (Win + kPa & Rotor Bonuses) occured, number of opportunities to have a unicorn match, and percentage.
111    #[serde(rename = "unicorn_matches")]
112    pub unicorn_matches: Vec<f32>,
113}
114
115impl EventInsights2017 {
116    /// Insights for FIRST STEAMWORKS qualification and elimination matches.
117    pub fn new(average_foul_score: f32, average_fuel_points: f32, average_fuel_points_auto: f32, average_fuel_points_teleop: f32, average_high_goals: f32, average_high_goals_auto: f32, average_high_goals_teleop: f32, average_low_goals: f32, average_low_goals_auto: f32, average_low_goals_teleop: f32, average_mobility_points_auto: f32, average_points_auto: f32, average_points_teleop: f32, average_rotor_points: f32, average_rotor_points_auto: f32, average_rotor_points_teleop: f32, average_score: f32, average_takeoff_points_teleop: f32, average_win_margin: f32, average_win_score: f32, high_kpa: Vec<String>, high_score: Vec<String>, kpa_achieved: Vec<f32>, mobility_counts: Vec<f32>, rotor_1_engaged: Vec<f32>, rotor_1_engaged_auto: Vec<f32>, rotor_2_engaged: Vec<f32>, rotor_2_engaged_auto: Vec<f32>, rotor_3_engaged: Vec<f32>, rotor_4_engaged: Vec<f32>, takeoff_counts: Vec<f32>, unicorn_matches: Vec<f32>) -> EventInsights2017 {
118        EventInsights2017 {
119            average_foul_score,
120            average_fuel_points,
121            average_fuel_points_auto,
122            average_fuel_points_teleop,
123            average_high_goals,
124            average_high_goals_auto,
125            average_high_goals_teleop,
126            average_low_goals,
127            average_low_goals_auto,
128            average_low_goals_teleop,
129            average_mobility_points_auto,
130            average_points_auto,
131            average_points_teleop,
132            average_rotor_points,
133            average_rotor_points_auto,
134            average_rotor_points_teleop,
135            average_score,
136            average_takeoff_points_teleop,
137            average_win_margin,
138            average_win_score,
139            high_kpa,
140            high_score,
141            kpa_achieved,
142            mobility_counts,
143            rotor_1_engaged,
144            rotor_1_engaged_auto,
145            rotor_2_engaged,
146            rotor_2_engaged_auto,
147            rotor_3_engaged,
148            rotor_4_engaged,
149            takeoff_counts,
150            unicorn_matches,
151        }
152    }
153}
154
155