tba_openapi_rust/models/
event_insights_2018.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/// EventInsights2018 : Insights for FIRST Power Up qualification and elimination matches.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct EventInsights2018 {
17    /// An array with three values, number of times auto quest was completed, number of opportunities to complete the auto quest, and percentage.
18    #[serde(rename = "auto_quest_achieved")]
19    pub auto_quest_achieved: Vec<f32>,
20    /// Average number of boost power up scored (out of 3).
21    #[serde(rename = "average_boost_played")]
22    pub average_boost_played: f32,
23    /// Average endgame points.
24    #[serde(rename = "average_endgame_points")]
25    pub average_endgame_points: f32,
26    /// Average number of force power up scored (out of 3).
27    #[serde(rename = "average_force_played")]
28    pub average_force_played: f32,
29    /// Average foul score.
30    #[serde(rename = "average_foul_score")]
31    pub average_foul_score: f32,
32    /// Average points scored during auto.
33    #[serde(rename = "average_points_auto")]
34    pub average_points_auto: f32,
35    /// Average points scored during teleop.
36    #[serde(rename = "average_points_teleop")]
37    pub average_points_teleop: f32,
38    /// Average mobility points scored during auto.
39    #[serde(rename = "average_run_points_auto")]
40    pub average_run_points_auto: f32,
41    /// Average scale ownership points scored.
42    #[serde(rename = "average_scale_ownership_points")]
43    pub average_scale_ownership_points: f32,
44    /// Average scale ownership points scored during auto.
45    #[serde(rename = "average_scale_ownership_points_auto")]
46    pub average_scale_ownership_points_auto: f32,
47    /// Average scale ownership points scored during teleop.
48    #[serde(rename = "average_scale_ownership_points_teleop")]
49    pub average_scale_ownership_points_teleop: f32,
50    /// Average score.
51    #[serde(rename = "average_score")]
52    pub average_score: f32,
53    /// Average switch ownership points scored.
54    #[serde(rename = "average_switch_ownership_points")]
55    pub average_switch_ownership_points: f32,
56    /// Average switch ownership points scored during auto.
57    #[serde(rename = "average_switch_ownership_points_auto")]
58    pub average_switch_ownership_points_auto: f32,
59    /// Average switch ownership points scored during teleop.
60    #[serde(rename = "average_switch_ownership_points_teleop")]
61    pub average_switch_ownership_points_teleop: f32,
62    /// Average value points scored.
63    #[serde(rename = "average_vault_points")]
64    pub average_vault_points: f32,
65    /// Average margin of victory.
66    #[serde(rename = "average_win_margin")]
67    pub average_win_margin: f32,
68    /// Average winning score.
69    #[serde(rename = "average_win_score")]
70    pub average_win_score: f32,
71    /// An array with three values, number of times a boost power up was played, number of opportunities to play a boost power up, and percentage.
72    #[serde(rename = "boost_played_counts")]
73    pub boost_played_counts: Vec<f32>,
74    /// An array with three values, number of times a climb occurred, number of opportunities to climb, and percentage.
75    #[serde(rename = "climb_counts")]
76    pub climb_counts: Vec<f32>,
77    /// An array with three values, number of times an alliance faced the boss, number of opportunities to face the boss, and percentage.
78    #[serde(rename = "face_the_boss_achieved")]
79    pub face_the_boss_achieved: Vec<f32>,
80    /// An array with three values, number of times a force power up was played, number of opportunities to play a force power up, and percentage.
81    #[serde(rename = "force_played_counts")]
82    pub force_played_counts: Vec<f32>,
83    /// An array with three values, high score, match key from the match with the high score, and the name of the match
84    #[serde(rename = "high_score")]
85    pub high_score: Vec<String>,
86    /// An array with three values, number of times a levitate power up was played, number of opportunities to play a levitate power up, and percentage.
87    #[serde(rename = "levitate_played_counts")]
88    pub levitate_played_counts: Vec<f32>,
89    /// An array with three values, number of times a team scored mobility points in auto, number of opportunities to score mobility points in auto, and percentage.
90    #[serde(rename = "run_counts_auto")]
91    pub run_counts_auto: Vec<f32>,
92    /// Average scale neutral percentage.
93    #[serde(rename = "scale_neutral_percentage")]
94    pub scale_neutral_percentage: f32,
95    /// Average scale neutral percentage during auto.
96    #[serde(rename = "scale_neutral_percentage_auto")]
97    pub scale_neutral_percentage_auto: f32,
98    /// Average scale neutral percentage during teleop.
99    #[serde(rename = "scale_neutral_percentage_teleop")]
100    pub scale_neutral_percentage_teleop: f32,
101    /// An array with three values, number of times a switch was owned during auto, number of opportunities to own a switch during auto, and percentage.
102    #[serde(rename = "switch_owned_counts_auto")]
103    pub switch_owned_counts_auto: Vec<f32>,
104    /// An array with three values, number of times a unicorn match (Win + Auto Quest + Face the Boss) occurred, number of opportunities to have a unicorn match, and percentage.
105    #[serde(rename = "unicorn_matches")]
106    pub unicorn_matches: Vec<f32>,
107    /// Average opposing switch denail percentage for the winning alliance during teleop.
108    #[serde(rename = "winning_opp_switch_denial_percentage_teleop")]
109    pub winning_opp_switch_denial_percentage_teleop: f32,
110    /// Average own switch ownership percentage for the winning alliance.
111    #[serde(rename = "winning_own_switch_ownership_percentage")]
112    pub winning_own_switch_ownership_percentage: f32,
113    /// Average own switch ownership percentage for the winning alliance during auto.
114    #[serde(rename = "winning_own_switch_ownership_percentage_auto")]
115    pub winning_own_switch_ownership_percentage_auto: f32,
116    /// Average own switch ownership percentage for the winning alliance during teleop.
117    #[serde(rename = "winning_own_switch_ownership_percentage_teleop")]
118    pub winning_own_switch_ownership_percentage_teleop: f32,
119    /// Average scale ownership percentage for the winning alliance.
120    #[serde(rename = "winning_scale_ownership_percentage")]
121    pub winning_scale_ownership_percentage: f32,
122    /// Average scale ownership percentage for the winning alliance during auto.
123    #[serde(rename = "winning_scale_ownership_percentage_auto")]
124    pub winning_scale_ownership_percentage_auto: f32,
125    /// Average scale ownership percentage for the winning alliance during teleop.
126    #[serde(rename = "winning_scale_ownership_percentage_teleop")]
127    pub winning_scale_ownership_percentage_teleop: f32,
128}
129
130impl EventInsights2018 {
131    /// Insights for FIRST Power Up qualification and elimination matches.
132    pub fn new(auto_quest_achieved: Vec<f32>, average_boost_played: f32, average_endgame_points: f32, average_force_played: f32, average_foul_score: f32, average_points_auto: f32, average_points_teleop: f32, average_run_points_auto: f32, average_scale_ownership_points: f32, average_scale_ownership_points_auto: f32, average_scale_ownership_points_teleop: f32, average_score: f32, average_switch_ownership_points: f32, average_switch_ownership_points_auto: f32, average_switch_ownership_points_teleop: f32, average_vault_points: f32, average_win_margin: f32, average_win_score: f32, boost_played_counts: Vec<f32>, climb_counts: Vec<f32>, face_the_boss_achieved: Vec<f32>, force_played_counts: Vec<f32>, high_score: Vec<String>, levitate_played_counts: Vec<f32>, run_counts_auto: Vec<f32>, scale_neutral_percentage: f32, scale_neutral_percentage_auto: f32, scale_neutral_percentage_teleop: f32, switch_owned_counts_auto: Vec<f32>, unicorn_matches: Vec<f32>, winning_opp_switch_denial_percentage_teleop: f32, winning_own_switch_ownership_percentage: f32, winning_own_switch_ownership_percentage_auto: f32, winning_own_switch_ownership_percentage_teleop: f32, winning_scale_ownership_percentage: f32, winning_scale_ownership_percentage_auto: f32, winning_scale_ownership_percentage_teleop: f32) -> EventInsights2018 {
133        EventInsights2018 {
134            auto_quest_achieved,
135            average_boost_played,
136            average_endgame_points,
137            average_force_played,
138            average_foul_score,
139            average_points_auto,
140            average_points_teleop,
141            average_run_points_auto,
142            average_scale_ownership_points,
143            average_scale_ownership_points_auto,
144            average_scale_ownership_points_teleop,
145            average_score,
146            average_switch_ownership_points,
147            average_switch_ownership_points_auto,
148            average_switch_ownership_points_teleop,
149            average_vault_points,
150            average_win_margin,
151            average_win_score,
152            boost_played_counts,
153            climb_counts,
154            face_the_boss_achieved,
155            force_played_counts,
156            high_score,
157            levitate_played_counts,
158            run_counts_auto,
159            scale_neutral_percentage,
160            scale_neutral_percentage_auto,
161            scale_neutral_percentage_teleop,
162            switch_owned_counts_auto,
163            unicorn_matches,
164            winning_opp_switch_denial_percentage_teleop,
165            winning_own_switch_ownership_percentage,
166            winning_own_switch_ownership_percentage_auto,
167            winning_own_switch_ownership_percentage_teleop,
168            winning_scale_ownership_percentage,
169            winning_scale_ownership_percentage_auto,
170            winning_scale_ownership_percentage_teleop,
171        }
172    }
173}
174
175