Skip to main content

nhl_stats/models/
draft_prospect_primary_position.rs

1/*
2 * NHL API
3 *
4 * Documenting the publicly accessible portions of the NHL API.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13#[derive(Debug, PartialEq, Serialize, Deserialize)]
14pub struct DraftProspectPrimaryPosition {
15    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
16    pub code: Option<String>,
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
20    pub _type: Option<String>,
21    #[serde(rename = "abbreviation", skip_serializing_if = "Option::is_none")]
22    pub abbreviation: Option<String>,
23}
24
25impl DraftProspectPrimaryPosition {
26    pub fn new() -> DraftProspectPrimaryPosition {
27        DraftProspectPrimaryPosition {
28            code: None,
29            name: None,
30            _type: None,
31            abbreviation: None,
32        }
33    }
34}
35
36