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

/// FinalDestinationQuery : A single search query. It can be used to lookup a door and parking spot by: - Forward geocode - Reverse geocode - Structured geocode - Naurt ID lookup - Source ID lookup 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FinalDestinationQuery {
    #[serde(rename = "address_string", skip_serializing_if = "Option::is_none")]
    pub address_string: Option<String>,
    #[serde(rename = "address_structured", skip_serializing_if = "Option::is_none")]
    pub address_structured: Option<Box<models::StructuredAddress>>,
    #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
    pub location: Option<Box<models::FinalDestinationLocation>>,
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    #[serde(rename = "country", skip_serializing_if = "Option::is_none")]
    pub country: Option<models::Country>,
    #[serde(rename = "source_id", skip_serializing_if = "Option::is_none")]
    pub source_id: Option<Box<models::FinalDestinationSourceIdRequest>>,
    #[serde(rename = "additional_matches", skip_serializing_if = "Option::is_none")]
    pub additional_matches: Option<bool>,
    #[serde(rename = "language", skip_serializing_if = "Option::is_none")]
    pub language: Option<models::Language>,
}

impl FinalDestinationQuery {
    /// A single search query. It can be used to lookup a door and parking spot by: - Forward geocode - Reverse geocode - Structured geocode - Naurt ID lookup - Source ID lookup 
    pub fn new() -> FinalDestinationQuery {
        FinalDestinationQuery {
            address_string: None,
            address_structured: None,
            location: None,
            id: None,
            country: None,
            source_id: None,
            additional_matches: None,
            language: None,
        }
    }
}