1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* 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};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
pub struct MotorcycleSpecification {
/// weight in kg
#[serde(rename = "weight")]
pub weight: i32,
/// size in cm
#[serde(rename = "length")]
pub length: i32,
/// size in cm
#[serde(rename = "width")]
pub width: i32,
/// size in cm
#[serde(rename = "height")]
pub height: i32,
/// Free text description of the brand (e.g. BMW)
#[serde(rename = "brand")]
pub brand: String,
/// Free text description of the model (e.g. X5)
#[serde(rename = "model")]
pub model: String,
/// deprecated use car of type SPECIAL_VEHILE instead
#[serde(rename = "isSideCarIncluded", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub is_side_car_included: Option<Option<bool>>,
}
impl MotorcycleSpecification {
pub fn new(weight: i32, length: i32, width: i32, height: i32, brand: String, model: String) -> MotorcycleSpecification {
MotorcycleSpecification {
weight,
length,
width,
height,
brand,
model,
is_side_car_included: None,
}
}
}