geoengine_api_client/models/
get_map_exception_format.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum GetMapExceptionFormat {
16 #[serde(rename = "XML")]
17 Xml,
18 #[serde(rename = "JSON")]
19 Json,
20
21}
22
23impl std::fmt::Display for GetMapExceptionFormat {
24 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25 match self {
26 Self::Xml => write!(f, "XML"),
27 Self::Json => write!(f, "JSON"),
28 }
29 }
30}
31
32impl Default for GetMapExceptionFormat {
33 fn default() -> GetMapExceptionFormat {
34 Self::Xml
35 }
36}
37