osdm_sys/models/
stop_call_status.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/// StopCallStatus : Status properties for the vehicle call at this stop. Provided by OJP. 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StopCallStatus {
17    /// Sequence number of this stop in the service pattern of the journey. 
18    #[serde(rename = "order", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub order: Option<Option<i32>>,
20    /// The vehicle journey calls at this stop only on demand. 
21    #[serde(rename = "requestStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22    pub request_stop: Option<Option<bool>>,
23    /// This stop has not been planned by the planning department. 
24    #[serde(rename = "unplannedStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub unplanned_stop: Option<Option<bool>>,
26    /// The vehicle will not call at this stop despite earlier planning. 
27    #[serde(rename = "notServicedStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub not_serviced_stop: Option<Option<bool>>,
29    /// Boarding will not be allowed at this stop of this journey. 
30    #[serde(rename = "noBoardingAtStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
31    pub no_boarding_at_stop: Option<Option<bool>>,
32    /// Alighting will not be allowed at this stop of this journey. 
33    #[serde(rename = "noAlightingAtStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
34    pub no_alighting_at_stop: Option<Option<bool>>,
35    /// Indicates whether the stop is recognized by the system as a border point between two or more countries. 
36    #[serde(rename = "isBorderPoint", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
37    pub is_border_point: Option<Option<bool>>,
38}
39
40impl StopCallStatus {
41    /// Status properties for the vehicle call at this stop. Provided by OJP. 
42    pub fn new() -> StopCallStatus {
43        StopCallStatus {
44            order: None,
45            request_stop: None,
46            unplanned_stop: None,
47            not_serviced_stop: None,
48            no_boarding_at_stop: None,
49            no_alighting_at_stop: None,
50            is_border_point: None,
51        }
52    }
53}
54