tba_openapi_rust/models/award_recipient.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/// AwardRecipient : An `Award_Recipient` object represents the team and/or person who received an award at an event.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct AwardRecipient {
17 /// The TBA team key for the team that was given the award. May be null.
18 #[serde(rename = "team_key", skip_serializing_if = "Option::is_none")]
19 pub team_key: Option<String>,
20 /// The name of the individual given the award. May be null.
21 #[serde(rename = "awardee", skip_serializing_if = "Option::is_none")]
22 pub awardee: Option<String>,
23}
24
25impl AwardRecipient {
26 /// An `Award_Recipient` object represents the team and/or person who received an award at an event.
27 pub fn new() -> AwardRecipient {
28 AwardRecipient {
29 team_key: None,
30 awardee: None,
31 }
32 }
33}
34
35