1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* The Blue Alliance API v3
*
* # 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).
*
* The version of the OpenAPI document: 3.8.2
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DistrictRankingEventPointsInner {
/// `true` if this event is a District Championship event.
#[serde(rename = "district_cmp")]
pub district_cmp: bool,
/// Total points awarded at this event.
#[serde(rename = "total")]
pub total: i32,
/// Points awarded for alliance selection.
#[serde(rename = "alliance_points")]
pub alliance_points: i32,
/// Points awarded for elimination match performance.
#[serde(rename = "elim_points")]
pub elim_points: i32,
/// Points awarded for event awards.
#[serde(rename = "award_points")]
pub award_points: i32,
/// TBA Event key for this event.
#[serde(rename = "event_key")]
pub event_key: String,
/// Points awarded for qualification match performance.
#[serde(rename = "qual_points")]
pub qual_points: i32,
}
impl DistrictRankingEventPointsInner {
pub fn new(district_cmp: bool, total: i32, alliance_points: i32, elim_points: i32, award_points: i32, event_key: String, qual_points: i32) -> DistrictRankingEventPointsInner {
DistrictRankingEventPointsInner {
district_cmp,
total,
alliance_points,
elim_points,
award_points,
event_key,
qual_points,
}
}
}