osdm_sys/models/initial_place_input.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/// InitialPlaceInput : Initial input for the place information request. This input defines what is originally looked for. Provided by OJP.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InitialPlaceInput {
17 /// Name of the place object which is looked after. This is usually the user's input. If not given, the name of the resulting place objects is not relevant.
18 #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19 pub name: Option<Option<String>>,
20 #[serde(rename = "geoPosition", skip_serializing_if = "Option::is_none")]
21 pub geo_position: Option<Box<models::GeoPosition>>,
22}
23
24impl InitialPlaceInput {
25 /// Initial input for the place information request. This input defines what is originally looked for. Provided by OJP.
26 pub fn new() -> InitialPlaceInput {
27 InitialPlaceInput {
28 name: None,
29 geo_position: None,
30 }
31 }
32}
33