tba_openapi_rust/models/wlt_record.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/// WltRecord : A Win-Loss-Tie record for a team, or an alliance.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct WltRecord {
17 /// Number of losses.
18 #[serde(rename = "losses")]
19 pub losses: i32,
20 /// Number of wins.
21 #[serde(rename = "wins")]
22 pub wins: i32,
23 /// Number of ties.
24 #[serde(rename = "ties")]
25 pub ties: i32,
26}
27
28impl WltRecord {
29 /// A Win-Loss-Tie record for a team, or an alliance.
30 pub fn new(losses: i32, wins: i32, ties: i32) -> WltRecord {
31 WltRecord {
32 losses,
33 wins,
34 ties,
35 }
36 }
37}
38
39