tba_openapi_rust/models/
team_robot.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 TeamRobot {
16    /// Year this robot competed in.
17    #[serde(rename = "year")]
18    pub year: i32,
19    /// Name of the robot as provided by the team.
20    #[serde(rename = "robot_name")]
21    pub robot_name: String,
22    /// Internal TBA identifier for this robot.
23    #[serde(rename = "key")]
24    pub key: String,
25    /// TBA team key for this robot.
26    #[serde(rename = "team_key")]
27    pub team_key: String,
28}
29
30impl TeamRobot {
31    pub fn new(year: i32, robot_name: String, key: String, team_key: String) -> TeamRobot {
32        TeamRobot {
33            year,
34            robot_name,
35            key,
36            team_key,
37        }
38    }
39}
40
41