osdm_sys/models/
api_next_version.rs

1/*
2 * UIC 90918-10 - OSDM
3 *
4 * Specifications for the OSDM API standard. The OSDM specification supports two modes of operation: Retailer Mode and Distributor Mode. The API works identically in both modes, except that in distributor mode the API also returns fare information.  The following resources are key to get started:    -  [Processes](https://osdm.io/spec/processes/)   -  [Models](https://osdm.io/spec/models/)   -  [Getting started](https://osdm.io/spec/getting-started/) 
5 *
6 * The version of the OpenAPI document: 3.7.0
7 * Contact: osdm@uic.org
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ApiNextVersion : Next version of the API. The next version is used to indicate the next version of the API that is being used. The version is in semantic versioning format, e.g. \"4.0.0\" and it is a version released at osdm.io. 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ApiNextVersion {
17    /// Version of the next API. 
18    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
19    pub version: Option<String>,
20    #[serde(rename = "availableAt", skip_serializing_if = "Option::is_none")]
21    pub available_at: Option<String>,
22    /// Date from which the next version is available. 
23    #[serde(rename = "availableFrom", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub available_from: Option<Option<String>>,
25}
26
27impl ApiNextVersion {
28    /// Next version of the API. The next version is used to indicate the next version of the API that is being used. The version is in semantic versioning format, e.g. \"4.0.0\" and it is a version released at osdm.io. 
29    pub fn new() -> ApiNextVersion {
30        ApiNextVersion {
31            version: None,
32            available_at: None,
33            available_from: None,
34        }
35    }
36}
37