osdm_sys/models/
trips_collection_response_content.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
17pub enum TripsCollectionResponseContent {
18 #[serde(rename = "ALL")]
19 All,
20 #[serde(rename = "TRIPS")]
21 Trips,
22 #[serde(rename = "TRIPSUMMARIES")]
23 Tripsummaries,
24 #[serde(rename = "NONE")]
25 None,
26
27}
28
29impl std::fmt::Display for TripsCollectionResponseContent {
30 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31 match self {
32 Self::All => write!(f, "ALL"),
33 Self::Trips => write!(f, "TRIPS"),
34 Self::Tripsummaries => write!(f, "TRIPSUMMARIES"),
35 Self::None => write!(f, "NONE"),
36 }
37 }
38}
39
40impl Default for TripsCollectionResponseContent {
41 fn default() -> TripsCollectionResponseContent {
42 Self::All
43 }
44}
45