naurt_api/models/
geojson_type.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum GeojsonType {
18 #[serde(rename = "geojson")]
19 Geojson,
20 #[serde(rename = "key_value")]
21 KeyValue,
22
23}
24
25impl std::fmt::Display for GeojsonType {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Geojson => write!(f, "geojson"),
29 Self::KeyValue => write!(f, "key_value"),
30 }
31 }
32}
33
34impl Default for GeojsonType {
35 fn default() -> GeojsonType {
36 Self::Geojson
37 }
38}
39