#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateAddress {
pub address1: ::std::option::Option<::std::string::String>,
pub address2: ::std::option::Option<::std::string::String>,
pub address3: ::std::option::Option<::std::string::String>,
pub address4: ::std::option::Option<::std::string::String>,
pub city: ::std::option::Option<::std::string::String>,
pub county: ::std::option::Option<::std::string::String>,
pub state: ::std::option::Option<::std::string::String>,
pub province: ::std::option::Option<::std::string::String>,
pub country: ::std::option::Option<::std::string::String>,
pub postal_code: ::std::option::Option<::std::string::String>,
}
impl UpdateAddress {
pub fn address1(&self) -> ::std::option::Option<&str> {
self.address1.as_deref()
}
pub fn address2(&self) -> ::std::option::Option<&str> {
self.address2.as_deref()
}
pub fn address3(&self) -> ::std::option::Option<&str> {
self.address3.as_deref()
}
pub fn address4(&self) -> ::std::option::Option<&str> {
self.address4.as_deref()
}
pub fn city(&self) -> ::std::option::Option<&str> {
self.city.as_deref()
}
pub fn county(&self) -> ::std::option::Option<&str> {
self.county.as_deref()
}
pub fn state(&self) -> ::std::option::Option<&str> {
self.state.as_deref()
}
pub fn province(&self) -> ::std::option::Option<&str> {
self.province.as_deref()
}
pub fn country(&self) -> ::std::option::Option<&str> {
self.country.as_deref()
}
pub fn postal_code(&self) -> ::std::option::Option<&str> {
self.postal_code.as_deref()
}
}
impl ::std::fmt::Debug for UpdateAddress {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateAddress");
formatter.field("address1", &"*** Sensitive Data Redacted ***");
formatter.field("address2", &"*** Sensitive Data Redacted ***");
formatter.field("address3", &"*** Sensitive Data Redacted ***");
formatter.field("address4", &"*** Sensitive Data Redacted ***");
formatter.field("city", &"*** Sensitive Data Redacted ***");
formatter.field("county", &"*** Sensitive Data Redacted ***");
formatter.field("state", &"*** Sensitive Data Redacted ***");
formatter.field("province", &"*** Sensitive Data Redacted ***");
formatter.field("country", &"*** Sensitive Data Redacted ***");
formatter.field("postal_code", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl UpdateAddress {
pub fn builder() -> crate::types::builders::UpdateAddressBuilder {
crate::types::builders::UpdateAddressBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct UpdateAddressBuilder {
pub(crate) address1: ::std::option::Option<::std::string::String>,
pub(crate) address2: ::std::option::Option<::std::string::String>,
pub(crate) address3: ::std::option::Option<::std::string::String>,
pub(crate) address4: ::std::option::Option<::std::string::String>,
pub(crate) city: ::std::option::Option<::std::string::String>,
pub(crate) county: ::std::option::Option<::std::string::String>,
pub(crate) state: ::std::option::Option<::std::string::String>,
pub(crate) province: ::std::option::Option<::std::string::String>,
pub(crate) country: ::std::option::Option<::std::string::String>,
pub(crate) postal_code: ::std::option::Option<::std::string::String>,
}
impl UpdateAddressBuilder {
pub fn address1(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.address1 = ::std::option::Option::Some(input.into());
self
}
pub fn set_address1(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.address1 = input;
self
}
pub fn get_address1(&self) -> &::std::option::Option<::std::string::String> {
&self.address1
}
pub fn address2(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.address2 = ::std::option::Option::Some(input.into());
self
}
pub fn set_address2(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.address2 = input;
self
}
pub fn get_address2(&self) -> &::std::option::Option<::std::string::String> {
&self.address2
}
pub fn address3(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.address3 = ::std::option::Option::Some(input.into());
self
}
pub fn set_address3(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.address3 = input;
self
}
pub fn get_address3(&self) -> &::std::option::Option<::std::string::String> {
&self.address3
}
pub fn address4(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.address4 = ::std::option::Option::Some(input.into());
self
}
pub fn set_address4(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.address4 = input;
self
}
pub fn get_address4(&self) -> &::std::option::Option<::std::string::String> {
&self.address4
}
pub fn city(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.city = ::std::option::Option::Some(input.into());
self
}
pub fn set_city(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.city = input;
self
}
pub fn get_city(&self) -> &::std::option::Option<::std::string::String> {
&self.city
}
pub fn county(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.county = ::std::option::Option::Some(input.into());
self
}
pub fn set_county(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.county = input;
self
}
pub fn get_county(&self) -> &::std::option::Option<::std::string::String> {
&self.county
}
pub fn state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.state = ::std::option::Option::Some(input.into());
self
}
pub fn set_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.state = input;
self
}
pub fn get_state(&self) -> &::std::option::Option<::std::string::String> {
&self.state
}
pub fn province(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.province = ::std::option::Option::Some(input.into());
self
}
pub fn set_province(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.province = input;
self
}
pub fn get_province(&self) -> &::std::option::Option<::std::string::String> {
&self.province
}
pub fn country(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.country = ::std::option::Option::Some(input.into());
self
}
pub fn set_country(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.country = input;
self
}
pub fn get_country(&self) -> &::std::option::Option<::std::string::String> {
&self.country
}
pub fn postal_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.postal_code = ::std::option::Option::Some(input.into());
self
}
pub fn set_postal_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.postal_code = input;
self
}
pub fn get_postal_code(&self) -> &::std::option::Option<::std::string::String> {
&self.postal_code
}
pub fn build(self) -> crate::types::UpdateAddress {
crate::types::UpdateAddress {
address1: self.address1,
address2: self.address2,
address3: self.address3,
address4: self.address4,
city: self.city,
county: self.county,
state: self.state,
province: self.province,
country: self.country,
postal_code: self.postal_code,
}
}
}
impl ::std::fmt::Debug for UpdateAddressBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateAddressBuilder");
formatter.field("address1", &"*** Sensitive Data Redacted ***");
formatter.field("address2", &"*** Sensitive Data Redacted ***");
formatter.field("address3", &"*** Sensitive Data Redacted ***");
formatter.field("address4", &"*** Sensitive Data Redacted ***");
formatter.field("city", &"*** Sensitive Data Redacted ***");
formatter.field("county", &"*** Sensitive Data Redacted ***");
formatter.field("state", &"*** Sensitive Data Redacted ***");
formatter.field("province", &"*** Sensitive Data Redacted ***");
formatter.field("country", &"*** Sensitive Data Redacted ***");
formatter.field("postal_code", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}