tba_openapi_rust/models/event_district_points_points_value.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 EventDistrictPointsPointsValue {
16 /// Total points awarded at this event.
17 #[serde(rename = "total")]
18 pub total: i32,
19 /// Points awarded for alliance selection
20 #[serde(rename = "alliance_points")]
21 pub alliance_points: i32,
22 /// Points awarded for elimination match performance.
23 #[serde(rename = "elim_points")]
24 pub elim_points: i32,
25 /// Points awarded for event awards.
26 #[serde(rename = "award_points")]
27 pub award_points: i32,
28 /// Points awarded for qualification match performance.
29 #[serde(rename = "qual_points")]
30 pub qual_points: i32,
31}
32
33impl EventDistrictPointsPointsValue {
34 pub fn new(total: i32, alliance_points: i32, elim_points: i32, award_points: i32, qual_points: i32) -> EventDistrictPointsPointsValue {
35 EventDistrictPointsPointsValue {
36 total,
37 alliance_points,
38 elim_points,
39 award_points,
40 qual_points,
41 }
42 }
43}
44
45