osdm-sys 0.1.0-alpha.3

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/)
Documentation
/*
 * UIC 90918-10 - OSDM
 *
 * 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/) 
 *
 * The version of the OpenAPI document: 3.7.0
 * Contact: osdm@uic.org
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// StopCallStatus : Status properties for the vehicle call at this stop. Provided by OJP. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
pub struct StopCallStatus {
    /// Sequence number of this stop in the service pattern of the journey. 
    #[serde(rename = "order", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub order: Option<Option<i32>>,
    /// The vehicle journey calls at this stop only on demand. 
    #[serde(rename = "requestStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub request_stop: Option<Option<bool>>,
    /// This stop has not been planned by the planning department. 
    #[serde(rename = "unplannedStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub unplanned_stop: Option<Option<bool>>,
    /// The vehicle will not call at this stop despite earlier planning. 
    #[serde(rename = "notServicedStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub not_serviced_stop: Option<Option<bool>>,
    /// Boarding will not be allowed at this stop of this journey. 
    #[serde(rename = "noBoardingAtStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub no_boarding_at_stop: Option<Option<bool>>,
    /// Alighting will not be allowed at this stop of this journey. 
    #[serde(rename = "noAlightingAtStop", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub no_alighting_at_stop: Option<Option<bool>>,
    /// Indicates whether the stop is recognized by the system as a border point between two or more countries. 
    #[serde(rename = "isBorderPoint", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub is_border_point: Option<Option<bool>>,
}

impl StopCallStatus {
    /// Status properties for the vehicle call at this stop. Provided by OJP. 
    pub fn new() -> StopCallStatus {
        StopCallStatus {
            order: None,
            request_stop: None,
            unplanned_stop: None,
            not_serviced_stop: None,
            no_boarding_at_stop: None,
            no_alighting_at_stop: None,
            is_border_point: None,
        }
    }
}