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 KeyValue {
    #[serde(rename = "building", skip_serializing_if = "Option::is_none")]
    pub building: Option<Box<models::Polygon>>,
    #[serde(rename = "default_geocode")]
    pub default_geocode: Box<models::Point>,
    #[serde(rename = "entrance", skip_serializing_if = "Option::is_none")]
    pub entrance: Option<Box<models::Multipoint>>,
    #[serde(rename = "parking", skip_serializing_if = "Option::is_none")]
    pub parking: Option<Box<models::Polygon>>,
}

impl KeyValue {
    pub fn new(default_geocode: models::Point) -> KeyValue {
        KeyValue {
            building: None,
            default_geocode: Box::new(default_geocode),
            entrance: None,
            parking: None,
        }
    }
}