tba_openapi_rust/models/zebra_team.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 ZebraTeam {
16 /// The TBA team key for the Zebra MotionWorks data.
17 #[serde(rename = "team_key")]
18 pub team_key: String,
19 /// A list containing doubles and nulls representing a teams X position in feet at the corresponding timestamp. A null value represents no tracking data for a given timestamp.
20 #[serde(rename = "xs")]
21 pub xs: Vec<f64>,
22 /// A list containing doubles and nulls representing a teams Y position in feet at the corresponding timestamp. A null value represents no tracking data for a given timestamp.
23 #[serde(rename = "ys")]
24 pub ys: Vec<f64>,
25}
26
27impl ZebraTeam {
28 pub fn new(team_key: String, xs: Vec<f64>, ys: Vec<f64>) -> ZebraTeam {
29 ZebraTeam {
30 team_key,
31 xs,
32 ys,
33 }
34 }
35}
36
37