tba_openapi_rust/models/
district_ranking_event_points_inner.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 DistrictRankingEventPointsInner {
16    /// `true` if this event is a District Championship event.
17    #[serde(rename = "district_cmp")]
18    pub district_cmp: bool,
19    /// Total points awarded at this event.
20    #[serde(rename = "total")]
21    pub total: i32,
22    /// Points awarded for alliance selection.
23    #[serde(rename = "alliance_points")]
24    pub alliance_points: i32,
25    /// Points awarded for elimination match performance.
26    #[serde(rename = "elim_points")]
27    pub elim_points: i32,
28    /// Points awarded for event awards.
29    #[serde(rename = "award_points")]
30    pub award_points: i32,
31    /// TBA Event key for this event.
32    #[serde(rename = "event_key")]
33    pub event_key: String,
34    /// Points awarded for qualification match performance.
35    #[serde(rename = "qual_points")]
36    pub qual_points: i32,
37}
38
39impl DistrictRankingEventPointsInner {
40    pub fn new(district_cmp: bool, total: i32, alliance_points: i32, elim_points: i32, award_points: i32, event_key: String, qual_points: i32) -> DistrictRankingEventPointsInner {
41        DistrictRankingEventPointsInner {
42            district_cmp,
43            total,
44            alliance_points,
45            elim_points,
46            award_points,
47            event_key,
48            qual_points,
49        }
50    }
51}
52
53