#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ContactInformation {
#[doc(hidden)]
pub full_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub address_line1: std::option::Option<std::string::String>,
#[doc(hidden)]
pub address_line2: std::option::Option<std::string::String>,
#[doc(hidden)]
pub address_line3: std::option::Option<std::string::String>,
#[doc(hidden)]
pub city: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state_or_region: std::option::Option<std::string::String>,
#[doc(hidden)]
pub district_or_county: std::option::Option<std::string::String>,
#[doc(hidden)]
pub postal_code: std::option::Option<std::string::String>,
#[doc(hidden)]
pub country_code: std::option::Option<std::string::String>,
#[doc(hidden)]
pub phone_number: std::option::Option<std::string::String>,
#[doc(hidden)]
pub company_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub website_url: std::option::Option<std::string::String>,
}
impl ContactInformation {
pub fn full_name(&self) -> std::option::Option<&str> {
self.full_name.as_deref()
}
pub fn address_line1(&self) -> std::option::Option<&str> {
self.address_line1.as_deref()
}
pub fn address_line2(&self) -> std::option::Option<&str> {
self.address_line2.as_deref()
}
pub fn address_line3(&self) -> std::option::Option<&str> {
self.address_line3.as_deref()
}
pub fn city(&self) -> std::option::Option<&str> {
self.city.as_deref()
}
pub fn state_or_region(&self) -> std::option::Option<&str> {
self.state_or_region.as_deref()
}
pub fn district_or_county(&self) -> std::option::Option<&str> {
self.district_or_county.as_deref()
}
pub fn postal_code(&self) -> std::option::Option<&str> {
self.postal_code.as_deref()
}
pub fn country_code(&self) -> std::option::Option<&str> {
self.country_code.as_deref()
}
pub fn phone_number(&self) -> std::option::Option<&str> {
self.phone_number.as_deref()
}
pub fn company_name(&self) -> std::option::Option<&str> {
self.company_name.as_deref()
}
pub fn website_url(&self) -> std::option::Option<&str> {
self.website_url.as_deref()
}
}
impl std::fmt::Debug for ContactInformation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ContactInformation");
formatter.field("full_name", &"*** Sensitive Data Redacted ***");
formatter.field("address_line1", &"*** Sensitive Data Redacted ***");
formatter.field("address_line2", &"*** Sensitive Data Redacted ***");
formatter.field("address_line3", &"*** Sensitive Data Redacted ***");
formatter.field("city", &"*** Sensitive Data Redacted ***");
formatter.field("state_or_region", &"*** Sensitive Data Redacted ***");
formatter.field("district_or_county", &"*** Sensitive Data Redacted ***");
formatter.field("postal_code", &"*** Sensitive Data Redacted ***");
formatter.field("country_code", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("company_name", &"*** Sensitive Data Redacted ***");
formatter.field("website_url", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod contact_information {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) full_name: std::option::Option<std::string::String>,
pub(crate) address_line1: std::option::Option<std::string::String>,
pub(crate) address_line2: std::option::Option<std::string::String>,
pub(crate) address_line3: std::option::Option<std::string::String>,
pub(crate) city: std::option::Option<std::string::String>,
pub(crate) state_or_region: std::option::Option<std::string::String>,
pub(crate) district_or_county: std::option::Option<std::string::String>,
pub(crate) postal_code: std::option::Option<std::string::String>,
pub(crate) country_code: std::option::Option<std::string::String>,
pub(crate) phone_number: std::option::Option<std::string::String>,
pub(crate) company_name: std::option::Option<std::string::String>,
pub(crate) website_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn full_name(mut self, input: impl Into<std::string::String>) -> Self {
self.full_name = Some(input.into());
self
}
pub fn set_full_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.full_name = input;
self
}
pub fn address_line1(mut self, input: impl Into<std::string::String>) -> Self {
self.address_line1 = Some(input.into());
self
}
pub fn set_address_line1(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.address_line1 = input;
self
}
pub fn address_line2(mut self, input: impl Into<std::string::String>) -> Self {
self.address_line2 = Some(input.into());
self
}
pub fn set_address_line2(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.address_line2 = input;
self
}
pub fn address_line3(mut self, input: impl Into<std::string::String>) -> Self {
self.address_line3 = Some(input.into());
self
}
pub fn set_address_line3(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.address_line3 = input;
self
}
pub fn city(mut self, input: impl Into<std::string::String>) -> Self {
self.city = Some(input.into());
self
}
pub fn set_city(mut self, input: std::option::Option<std::string::String>) -> Self {
self.city = input;
self
}
pub fn state_or_region(mut self, input: impl Into<std::string::String>) -> Self {
self.state_or_region = Some(input.into());
self
}
pub fn set_state_or_region(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.state_or_region = input;
self
}
pub fn district_or_county(mut self, input: impl Into<std::string::String>) -> Self {
self.district_or_county = Some(input.into());
self
}
pub fn set_district_or_county(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.district_or_county = input;
self
}
pub fn postal_code(mut self, input: impl Into<std::string::String>) -> Self {
self.postal_code = 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 country_code(mut self, input: impl Into<std::string::String>) -> Self {
self.country_code = Some(input.into());
self
}
pub fn set_country_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.country_code = input;
self
}
pub fn phone_number(mut self, input: impl Into<std::string::String>) -> Self {
self.phone_number = Some(input.into());
self
}
pub fn set_phone_number(mut self, input: std::option::Option<std::string::String>) -> Self {
self.phone_number = input;
self
}
pub fn company_name(mut self, input: impl Into<std::string::String>) -> Self {
self.company_name = Some(input.into());
self
}
pub fn set_company_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.company_name = input;
self
}
pub fn website_url(mut self, input: impl Into<std::string::String>) -> Self {
self.website_url = Some(input.into());
self
}
pub fn set_website_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.website_url = input;
self
}
pub fn build(self) -> crate::model::ContactInformation {
crate::model::ContactInformation {
full_name: self.full_name,
address_line1: self.address_line1,
address_line2: self.address_line2,
address_line3: self.address_line3,
city: self.city,
state_or_region: self.state_or_region,
district_or_county: self.district_or_county,
postal_code: self.postal_code,
country_code: self.country_code,
phone_number: self.phone_number,
company_name: self.company_name,
website_url: self.website_url,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("full_name", &"*** Sensitive Data Redacted ***");
formatter.field("address_line1", &"*** Sensitive Data Redacted ***");
formatter.field("address_line2", &"*** Sensitive Data Redacted ***");
formatter.field("address_line3", &"*** Sensitive Data Redacted ***");
formatter.field("city", &"*** Sensitive Data Redacted ***");
formatter.field("state_or_region", &"*** Sensitive Data Redacted ***");
formatter.field("district_or_county", &"*** Sensitive Data Redacted ***");
formatter.field("postal_code", &"*** Sensitive Data Redacted ***");
formatter.field("country_code", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("company_name", &"*** Sensitive Data Redacted ***");
formatter.field("website_url", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ContactInformation {
pub fn builder() -> crate::model::contact_information::Builder {
crate::model::contact_information::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum AlternateContactType {
#[allow(missing_docs)] Billing,
#[allow(missing_docs)] Operations,
#[allow(missing_docs)] Security,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AlternateContactType {
fn from(s: &str) -> Self {
match s {
"BILLING" => AlternateContactType::Billing,
"OPERATIONS" => AlternateContactType::Operations,
"SECURITY" => AlternateContactType::Security,
other => {
AlternateContactType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for AlternateContactType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AlternateContactType::from(s))
}
}
impl AlternateContactType {
pub fn as_str(&self) -> &str {
match self {
AlternateContactType::Billing => "BILLING",
AlternateContactType::Operations => "OPERATIONS",
AlternateContactType::Security => "SECURITY",
AlternateContactType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["BILLING", "OPERATIONS", "SECURITY"]
}
}
impl AsRef<str> for AlternateContactType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AlternateContact {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub title: std::option::Option<std::string::String>,
#[doc(hidden)]
pub email_address: std::option::Option<std::string::String>,
#[doc(hidden)]
pub phone_number: std::option::Option<std::string::String>,
#[doc(hidden)]
pub alternate_contact_type: std::option::Option<crate::model::AlternateContactType>,
}
impl AlternateContact {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn title(&self) -> std::option::Option<&str> {
self.title.as_deref()
}
pub fn email_address(&self) -> std::option::Option<&str> {
self.email_address.as_deref()
}
pub fn phone_number(&self) -> std::option::Option<&str> {
self.phone_number.as_deref()
}
pub fn alternate_contact_type(
&self,
) -> std::option::Option<&crate::model::AlternateContactType> {
self.alternate_contact_type.as_ref()
}
}
impl std::fmt::Debug for AlternateContact {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AlternateContact");
formatter.field("name", &"*** Sensitive Data Redacted ***");
formatter.field("title", &"*** Sensitive Data Redacted ***");
formatter.field("email_address", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("alternate_contact_type", &self.alternate_contact_type);
formatter.finish()
}
}
pub mod alternate_contact {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) title: std::option::Option<std::string::String>,
pub(crate) email_address: std::option::Option<std::string::String>,
pub(crate) phone_number: std::option::Option<std::string::String>,
pub(crate) alternate_contact_type: std::option::Option<crate::model::AlternateContactType>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn title(mut self, input: impl Into<std::string::String>) -> Self {
self.title = Some(input.into());
self
}
pub fn set_title(mut self, input: std::option::Option<std::string::String>) -> Self {
self.title = input;
self
}
pub fn email_address(mut self, input: impl Into<std::string::String>) -> Self {
self.email_address = Some(input.into());
self
}
pub fn set_email_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.email_address = input;
self
}
pub fn phone_number(mut self, input: impl Into<std::string::String>) -> Self {
self.phone_number = Some(input.into());
self
}
pub fn set_phone_number(mut self, input: std::option::Option<std::string::String>) -> Self {
self.phone_number = input;
self
}
pub fn alternate_contact_type(mut self, input: crate::model::AlternateContactType) -> Self {
self.alternate_contact_type = Some(input);
self
}
pub fn set_alternate_contact_type(
mut self,
input: std::option::Option<crate::model::AlternateContactType>,
) -> Self {
self.alternate_contact_type = input;
self
}
pub fn build(self) -> crate::model::AlternateContact {
crate::model::AlternateContact {
name: self.name,
title: self.title,
email_address: self.email_address,
phone_number: self.phone_number,
alternate_contact_type: self.alternate_contact_type,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("name", &"*** Sensitive Data Redacted ***");
formatter.field("title", &"*** Sensitive Data Redacted ***");
formatter.field("email_address", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("alternate_contact_type", &self.alternate_contact_type);
formatter.finish()
}
}
}
impl AlternateContact {
pub fn builder() -> crate::model::alternate_contact::Builder {
crate::model::alternate_contact::Builder::default()
}
}