osdm_sys/models/
trip_collection_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TripCollectionResponse {
17 #[serde(rename = "warning", skip_serializing_if = "Option::is_none")]
18 pub warning: Option<Box<models::WarningCollection>>,
19 #[serde(rename = "problems", skip_serializing_if = "Option::is_none")]
20 pub problems: Option<Vec<models::Problem>>,
21 #[serde(rename = "id")]
22 pub id: String,
23 #[serde(rename = "trips", skip_serializing_if = "Option::is_none")]
24 pub trips: Option<Vec<models::Trip>>,
25 #[serde(rename = "tripSummaries", skip_serializing_if = "Option::is_none")]
26 pub trip_summaries: Option<Vec<models::TripSummary>>,
27 #[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
29 pub _links: Option<Vec<models::Link>>,
30}
31
32impl TripCollectionResponse {
33 pub fn new(id: String) -> TripCollectionResponse {
35 TripCollectionResponse {
36 warning: None,
37 problems: None,
38 id,
39 trips: None,
40 trip_summaries: None,
41 _links: None,
42 }
43 }
44}
45