tba_openapi_rust/models/
event_ranking_extra_stats_info_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 EventRankingExtraStatsInfoInner {
16    /// Integer expressing the number of digits of precision in the number provided in `sort_orders`.
17    #[serde(rename = "precision")]
18    pub precision: f32,
19    /// Name of the field used in the `extra_stats` array.
20    #[serde(rename = "name")]
21    pub name: String,
22}
23
24impl EventRankingExtraStatsInfoInner {
25    pub fn new(precision: f32, name: String) -> EventRankingExtraStatsInfoInner {
26        EventRankingExtraStatsInfoInner {
27            precision,
28            name,
29        }
30    }
31}
32
33