use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum GetMapExceptionFormat {
#[serde(rename = "XML")]
Xml,
#[serde(rename = "JSON")]
Json,
}
impl std::fmt::Display for GetMapExceptionFormat {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Xml => write!(f, "XML"),
Self::Json => write!(f, "JSON"),
}
}
}
impl Default for GetMapExceptionFormat {
fn default() -> GetMapExceptionFormat {
Self::Xml
}
}