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