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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Polygon {
    #[serde(rename = "coordinates")]
    pub coordinates: Vec<Vec<Vec<f64>>>,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl Polygon {
    pub fn new(coordinates: Vec<Vec<Vec<f64>>>, r#type: Type) -> Polygon {
        Polygon {
            coordinates,
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "Polygon")]
    Polygon,
}

impl Default for Type {
    fn default() -> Type {
        Self::Polygon
    }
}