osdm_sys/models/
trip_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 TripResponseContent {
18 #[serde(rename = "ALL")]
19 All,
20 #[serde(rename = "PLACES")]
21 Places,
22 #[serde(rename = "NONE")]
23 None,
24
25}
26
27impl std::fmt::Display for TripResponseContent {
28 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29 match self {
30 Self::All => write!(f, "ALL"),
31 Self::Places => write!(f, "PLACES"),
32 Self::None => write!(f, "NONE"),
33 }
34 }
35}
36
37impl Default for TripResponseContent {
38 fn default() -> TripResponseContent {
39 Self::All
40 }
41}
42