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

/// StructuredAddress : Naurt's own format for structured address data. Please see:  https://docs.naurt.com/reference/address-structure/ for significant more  details on this data format.  When searching, do not use `country_code` - as it is not used. `country_code` is for responses only. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StructuredAddress {
    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
    pub unit: Option<String>,
    #[serde(rename = "house_name", skip_serializing_if = "Option::is_none")]
    pub house_name: Option<String>,
    #[serde(rename = "street_number", skip_serializing_if = "Option::is_none")]
    pub street_number: Option<String>,
    #[serde(rename = "street_name", skip_serializing_if = "Option::is_none")]
    pub street_name: Option<String>,
    #[serde(rename = "locality", skip_serializing_if = "Option::is_none")]
    pub locality: Option<String>,
    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    #[serde(rename = "county", skip_serializing_if = "Option::is_none")]
    pub county: Option<String>,
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[serde(rename = "country", skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    #[serde(rename = "postalcode", skip_serializing_if = "Option::is_none")]
    pub postalcode: Option<String>,
    #[serde(rename = "country_code", skip_serializing_if = "Option::is_none")]
    pub country_code: Option<models::Country>,
}

impl StructuredAddress {
    /// Naurt's own format for structured address data. Please see:  https://docs.naurt.com/reference/address-structure/ for significant more  details on this data format.  When searching, do not use `country_code` - as it is not used. `country_code` is for responses only. 
    pub fn new() -> StructuredAddress {
        StructuredAddress {
            unit: None,
            house_name: None,
            street_number: None,
            street_name: None,
            locality: None,
            city: None,
            county: None,
            state: None,
            country: None,
            postalcode: None,
            country_code: None,
        }
    }
}