naurt-api 0.1.4

OpenAPI specification for Naurt's APIs.
Documentation
/*
 * Naurt API
 *
 * OpenAPI specification for Naurt's APIs. 
 *
 * The version of the OpenAPI document: 0.1.4
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// GeojsonType : Use this to switch between a key-value style GeoJSON or a classic GeoJSON 
/// Use this to switch between a key-value style GeoJSON or a classic GeoJSON 
#[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
    }
}