use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
pub struct PostalAddress {
#[serde(rename = "countryName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub country_name: Option<Option<String>>,
#[serde(rename = "countryCode", skip_serializing_if = "Option::is_none")]
pub country_code: Option<String>,
#[serde(rename = "postCode", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub post_code: Option<Option<String>>,
#[serde(rename = "city", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub city: Option<Option<String>>,
#[serde(rename = "street", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub street: Option<Option<String>>,
#[serde(rename = "houseNumber", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub house_number: Option<Option<String>>,
}
impl PostalAddress {
pub fn new() -> PostalAddress {
PostalAddress {
country_name: None,
country_code: None,
post_code: None,
city: None,
street: None,
house_number: None,
}
}
}