#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BillingRecord {
#[doc(hidden)]
pub domain_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub operation: std::option::Option<crate::model::OperationType>,
#[doc(hidden)]
pub invoice_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub bill_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub price: f64,
}
impl BillingRecord {
pub fn domain_name(&self) -> std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn operation(&self) -> std::option::Option<&crate::model::OperationType> {
self.operation.as_ref()
}
pub fn invoice_id(&self) -> std::option::Option<&str> {
self.invoice_id.as_deref()
}
pub fn bill_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.bill_date.as_ref()
}
pub fn price(&self) -> f64 {
self.price
}
}
pub mod billing_record {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) operation: std::option::Option<crate::model::OperationType>,
pub(crate) invoice_id: std::option::Option<std::string::String>,
pub(crate) bill_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) price: std::option::Option<f64>,
}
impl Builder {
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.domain_name = Some(input.into());
self
}
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn operation(mut self, input: crate::model::OperationType) -> Self {
self.operation = Some(input);
self
}
pub fn set_operation(
mut self,
input: std::option::Option<crate::model::OperationType>,
) -> Self {
self.operation = input;
self
}
pub fn invoice_id(mut self, input: impl Into<std::string::String>) -> Self {
self.invoice_id = Some(input.into());
self
}
pub fn set_invoice_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.invoice_id = input;
self
}
pub fn bill_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.bill_date = Some(input);
self
}
pub fn set_bill_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.bill_date = input;
self
}
pub fn price(mut self, input: f64) -> Self {
self.price = Some(input);
self
}
pub fn set_price(mut self, input: std::option::Option<f64>) -> Self {
self.price = input;
self
}
pub fn build(self) -> crate::model::BillingRecord {
crate::model::BillingRecord {
domain_name: self.domain_name,
operation: self.operation,
invoice_id: self.invoice_id,
bill_date: self.bill_date,
price: self.price.unwrap_or_default(),
}
}
}
}
impl BillingRecord {
pub fn builder() -> crate::model::billing_record::Builder {
crate::model::billing_record::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 OperationType {
#[allow(missing_docs)] AddDnssec,
#[allow(missing_docs)] ChangeDomainOwner,
#[allow(missing_docs)] ChangePrivacyProtection,
#[allow(missing_docs)] DeleteDomain,
#[allow(missing_docs)] DisableAutorenew,
#[allow(missing_docs)] DomainLock,
#[allow(missing_docs)] EnableAutorenew,
#[allow(missing_docs)] ExpireDomain,
#[allow(missing_docs)] InternalTransferInDomain,
#[allow(missing_docs)] InternalTransferOutDomain,
#[allow(missing_docs)] PushDomain,
#[allow(missing_docs)] RegisterDomain,
#[allow(missing_docs)] RemoveDnssec,
#[allow(missing_docs)] RenewDomain,
#[allow(missing_docs)] TransferInDomain,
#[allow(missing_docs)] TransferOutDomain,
#[allow(missing_docs)] UpdateDomainContact,
#[allow(missing_docs)] UpdateNameserver,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for OperationType {
fn from(s: &str) -> Self {
match s {
"ADD_DNSSEC" => OperationType::AddDnssec,
"CHANGE_DOMAIN_OWNER" => OperationType::ChangeDomainOwner,
"CHANGE_PRIVACY_PROTECTION" => OperationType::ChangePrivacyProtection,
"DELETE_DOMAIN" => OperationType::DeleteDomain,
"DISABLE_AUTORENEW" => OperationType::DisableAutorenew,
"DOMAIN_LOCK" => OperationType::DomainLock,
"ENABLE_AUTORENEW" => OperationType::EnableAutorenew,
"EXPIRE_DOMAIN" => OperationType::ExpireDomain,
"INTERNAL_TRANSFER_IN_DOMAIN" => OperationType::InternalTransferInDomain,
"INTERNAL_TRANSFER_OUT_DOMAIN" => OperationType::InternalTransferOutDomain,
"PUSH_DOMAIN" => OperationType::PushDomain,
"REGISTER_DOMAIN" => OperationType::RegisterDomain,
"REMOVE_DNSSEC" => OperationType::RemoveDnssec,
"RENEW_DOMAIN" => OperationType::RenewDomain,
"TRANSFER_IN_DOMAIN" => OperationType::TransferInDomain,
"TRANSFER_OUT_DOMAIN" => OperationType::TransferOutDomain,
"UPDATE_DOMAIN_CONTACT" => OperationType::UpdateDomainContact,
"UPDATE_NAMESERVER" => OperationType::UpdateNameserver,
other => OperationType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for OperationType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(OperationType::from(s))
}
}
impl OperationType {
pub fn as_str(&self) -> &str {
match self {
OperationType::AddDnssec => "ADD_DNSSEC",
OperationType::ChangeDomainOwner => "CHANGE_DOMAIN_OWNER",
OperationType::ChangePrivacyProtection => "CHANGE_PRIVACY_PROTECTION",
OperationType::DeleteDomain => "DELETE_DOMAIN",
OperationType::DisableAutorenew => "DISABLE_AUTORENEW",
OperationType::DomainLock => "DOMAIN_LOCK",
OperationType::EnableAutorenew => "ENABLE_AUTORENEW",
OperationType::ExpireDomain => "EXPIRE_DOMAIN",
OperationType::InternalTransferInDomain => "INTERNAL_TRANSFER_IN_DOMAIN",
OperationType::InternalTransferOutDomain => "INTERNAL_TRANSFER_OUT_DOMAIN",
OperationType::PushDomain => "PUSH_DOMAIN",
OperationType::RegisterDomain => "REGISTER_DOMAIN",
OperationType::RemoveDnssec => "REMOVE_DNSSEC",
OperationType::RenewDomain => "RENEW_DOMAIN",
OperationType::TransferInDomain => "TRANSFER_IN_DOMAIN",
OperationType::TransferOutDomain => "TRANSFER_OUT_DOMAIN",
OperationType::UpdateDomainContact => "UPDATE_DOMAIN_CONTACT",
OperationType::UpdateNameserver => "UPDATE_NAMESERVER",
OperationType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ADD_DNSSEC",
"CHANGE_DOMAIN_OWNER",
"CHANGE_PRIVACY_PROTECTION",
"DELETE_DOMAIN",
"DISABLE_AUTORENEW",
"DOMAIN_LOCK",
"ENABLE_AUTORENEW",
"EXPIRE_DOMAIN",
"INTERNAL_TRANSFER_IN_DOMAIN",
"INTERNAL_TRANSFER_OUT_DOMAIN",
"PUSH_DOMAIN",
"REGISTER_DOMAIN",
"REMOVE_DNSSEC",
"RENEW_DOMAIN",
"TRANSFER_IN_DOMAIN",
"TRANSFER_OUT_DOMAIN",
"UPDATE_DOMAIN_CONTACT",
"UPDATE_NAMESERVER",
]
}
}
impl AsRef<str> for OperationType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Tag {
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl Tag {
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
pub mod tag {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::Tag {
crate::model::Tag {
key: self.key,
value: self.value,
}
}
}
}
impl Tag {
pub fn builder() -> crate::model::tag::Builder {
crate::model::tag::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Nameserver {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub glue_ips: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Nameserver {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn glue_ips(&self) -> std::option::Option<&[std::string::String]> {
self.glue_ips.as_deref()
}
}
pub mod nameserver {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) glue_ips: std::option::Option<std::vec::Vec<std::string::String>>,
}
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 glue_ips(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.glue_ips.unwrap_or_default();
v.push(input.into());
self.glue_ips = Some(v);
self
}
pub fn set_glue_ips(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.glue_ips = input;
self
}
pub fn build(self) -> crate::model::Nameserver {
crate::model::Nameserver {
name: self.name,
glue_ips: self.glue_ips,
}
}
}
}
impl Nameserver {
pub fn builder() -> crate::model::nameserver::Builder {
crate::model::nameserver::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Consent {
#[doc(hidden)]
pub max_price: f64,
#[doc(hidden)]
pub currency: std::option::Option<std::string::String>,
}
impl Consent {
pub fn max_price(&self) -> f64 {
self.max_price
}
pub fn currency(&self) -> std::option::Option<&str> {
self.currency.as_deref()
}
}
pub mod consent {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) max_price: std::option::Option<f64>,
pub(crate) currency: std::option::Option<std::string::String>,
}
impl Builder {
pub fn max_price(mut self, input: f64) -> Self {
self.max_price = Some(input);
self
}
pub fn set_max_price(mut self, input: std::option::Option<f64>) -> Self {
self.max_price = input;
self
}
pub fn currency(mut self, input: impl Into<std::string::String>) -> Self {
self.currency = Some(input.into());
self
}
pub fn set_currency(mut self, input: std::option::Option<std::string::String>) -> Self {
self.currency = input;
self
}
pub fn build(self) -> crate::model::Consent {
crate::model::Consent {
max_price: self.max_price.unwrap_or_default(),
currency: self.currency,
}
}
}
}
impl Consent {
pub fn builder() -> crate::model::consent::Builder {
crate::model::consent::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ContactDetail {
#[doc(hidden)]
pub first_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub last_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub contact_type: std::option::Option<crate::model::ContactType>,
#[doc(hidden)]
pub organization_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 city: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state: std::option::Option<std::string::String>,
#[doc(hidden)]
pub country_code: std::option::Option<crate::model::CountryCode>,
#[doc(hidden)]
pub zip_code: std::option::Option<std::string::String>,
#[doc(hidden)]
pub phone_number: std::option::Option<std::string::String>,
#[doc(hidden)]
pub email: std::option::Option<std::string::String>,
#[doc(hidden)]
pub fax: std::option::Option<std::string::String>,
#[doc(hidden)]
pub extra_params: std::option::Option<std::vec::Vec<crate::model::ExtraParam>>,
}
impl ContactDetail {
pub fn first_name(&self) -> std::option::Option<&str> {
self.first_name.as_deref()
}
pub fn last_name(&self) -> std::option::Option<&str> {
self.last_name.as_deref()
}
pub fn contact_type(&self) -> std::option::Option<&crate::model::ContactType> {
self.contact_type.as_ref()
}
pub fn organization_name(&self) -> std::option::Option<&str> {
self.organization_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 city(&self) -> std::option::Option<&str> {
self.city.as_deref()
}
pub fn state(&self) -> std::option::Option<&str> {
self.state.as_deref()
}
pub fn country_code(&self) -> std::option::Option<&crate::model::CountryCode> {
self.country_code.as_ref()
}
pub fn zip_code(&self) -> std::option::Option<&str> {
self.zip_code.as_deref()
}
pub fn phone_number(&self) -> std::option::Option<&str> {
self.phone_number.as_deref()
}
pub fn email(&self) -> std::option::Option<&str> {
self.email.as_deref()
}
pub fn fax(&self) -> std::option::Option<&str> {
self.fax.as_deref()
}
pub fn extra_params(&self) -> std::option::Option<&[crate::model::ExtraParam]> {
self.extra_params.as_deref()
}
}
impl std::fmt::Debug for ContactDetail {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ContactDetail");
formatter.field("first_name", &"*** Sensitive Data Redacted ***");
formatter.field("last_name", &"*** Sensitive Data Redacted ***");
formatter.field("contact_type", &"*** Sensitive Data Redacted ***");
formatter.field("organization_name", &"*** Sensitive Data Redacted ***");
formatter.field("address_line1", &"*** Sensitive Data Redacted ***");
formatter.field("address_line2", &"*** Sensitive Data Redacted ***");
formatter.field("city", &"*** Sensitive Data Redacted ***");
formatter.field("state", &"*** Sensitive Data Redacted ***");
formatter.field("country_code", &"*** Sensitive Data Redacted ***");
formatter.field("zip_code", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("email", &"*** Sensitive Data Redacted ***");
formatter.field("fax", &"*** Sensitive Data Redacted ***");
formatter.field("extra_params", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod contact_detail {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) first_name: std::option::Option<std::string::String>,
pub(crate) last_name: std::option::Option<std::string::String>,
pub(crate) contact_type: std::option::Option<crate::model::ContactType>,
pub(crate) organization_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) city: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<std::string::String>,
pub(crate) country_code: std::option::Option<crate::model::CountryCode>,
pub(crate) zip_code: std::option::Option<std::string::String>,
pub(crate) phone_number: std::option::Option<std::string::String>,
pub(crate) email: std::option::Option<std::string::String>,
pub(crate) fax: std::option::Option<std::string::String>,
pub(crate) extra_params: std::option::Option<std::vec::Vec<crate::model::ExtraParam>>,
}
impl Builder {
pub fn first_name(mut self, input: impl Into<std::string::String>) -> Self {
self.first_name = Some(input.into());
self
}
pub fn set_first_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.first_name = input;
self
}
pub fn last_name(mut self, input: impl Into<std::string::String>) -> Self {
self.last_name = Some(input.into());
self
}
pub fn set_last_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.last_name = input;
self
}
pub fn contact_type(mut self, input: crate::model::ContactType) -> Self {
self.contact_type = Some(input);
self
}
pub fn set_contact_type(
mut self,
input: std::option::Option<crate::model::ContactType>,
) -> Self {
self.contact_type = input;
self
}
pub fn organization_name(mut self, input: impl Into<std::string::String>) -> Self {
self.organization_name = Some(input.into());
self
}
pub fn set_organization_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.organization_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 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(mut self, input: impl Into<std::string::String>) -> Self {
self.state = Some(input.into());
self
}
pub fn set_state(mut self, input: std::option::Option<std::string::String>) -> Self {
self.state = input;
self
}
pub fn country_code(mut self, input: crate::model::CountryCode) -> Self {
self.country_code = Some(input);
self
}
pub fn set_country_code(
mut self,
input: std::option::Option<crate::model::CountryCode>,
) -> Self {
self.country_code = input;
self
}
pub fn zip_code(mut self, input: impl Into<std::string::String>) -> Self {
self.zip_code = Some(input.into());
self
}
pub fn set_zip_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.zip_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 email(mut self, input: impl Into<std::string::String>) -> Self {
self.email = Some(input.into());
self
}
pub fn set_email(mut self, input: std::option::Option<std::string::String>) -> Self {
self.email = input;
self
}
pub fn fax(mut self, input: impl Into<std::string::String>) -> Self {
self.fax = Some(input.into());
self
}
pub fn set_fax(mut self, input: std::option::Option<std::string::String>) -> Self {
self.fax = input;
self
}
pub fn extra_params(mut self, input: crate::model::ExtraParam) -> Self {
let mut v = self.extra_params.unwrap_or_default();
v.push(input);
self.extra_params = Some(v);
self
}
pub fn set_extra_params(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ExtraParam>>,
) -> Self {
self.extra_params = input;
self
}
pub fn build(self) -> crate::model::ContactDetail {
crate::model::ContactDetail {
first_name: self.first_name,
last_name: self.last_name,
contact_type: self.contact_type,
organization_name: self.organization_name,
address_line1: self.address_line1,
address_line2: self.address_line2,
city: self.city,
state: self.state,
country_code: self.country_code,
zip_code: self.zip_code,
phone_number: self.phone_number,
email: self.email,
fax: self.fax,
extra_params: self.extra_params,
}
}
}
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("first_name", &"*** Sensitive Data Redacted ***");
formatter.field("last_name", &"*** Sensitive Data Redacted ***");
formatter.field("contact_type", &"*** Sensitive Data Redacted ***");
formatter.field("organization_name", &"*** Sensitive Data Redacted ***");
formatter.field("address_line1", &"*** Sensitive Data Redacted ***");
formatter.field("address_line2", &"*** Sensitive Data Redacted ***");
formatter.field("city", &"*** Sensitive Data Redacted ***");
formatter.field("state", &"*** Sensitive Data Redacted ***");
formatter.field("country_code", &"*** Sensitive Data Redacted ***");
formatter.field("zip_code", &"*** Sensitive Data Redacted ***");
formatter.field("phone_number", &"*** Sensitive Data Redacted ***");
formatter.field("email", &"*** Sensitive Data Redacted ***");
formatter.field("fax", &"*** Sensitive Data Redacted ***");
formatter.field("extra_params", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ContactDetail {
pub fn builder() -> crate::model::contact_detail::Builder {
crate::model::contact_detail::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExtraParam {
#[doc(hidden)]
pub name: std::option::Option<crate::model::ExtraParamName>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl ExtraParam {
pub fn name(&self) -> std::option::Option<&crate::model::ExtraParamName> {
self.name.as_ref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
impl std::fmt::Debug for ExtraParam {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExtraParam");
formatter.field("name", &self.name);
formatter.field("value", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod extra_param {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::ExtraParamName>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn name(mut self, input: crate::model::ExtraParamName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::ExtraParamName>,
) -> Self {
self.name = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::ExtraParam {
crate::model::ExtraParam {
name: self.name,
value: self.value,
}
}
}
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", &self.name);
formatter.field("value", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ExtraParam {
pub fn builder() -> crate::model::extra_param::Builder {
crate::model::extra_param::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 ExtraParamName {
#[allow(missing_docs)] AuIdNumber,
#[allow(missing_docs)] AuIdType,
#[allow(missing_docs)] AuPriorityToken,
#[allow(missing_docs)] BirthCity,
#[allow(missing_docs)] BirthCountry,
#[allow(missing_docs)] BirthDateInYyyyMmDd,
#[allow(missing_docs)] BirthDepartment,
#[allow(missing_docs)] BrandNumber,
#[allow(missing_docs)] CaBusinessEntityType,
#[allow(missing_docs)] CaLegalRepresentative,
#[allow(missing_docs)] CaLegalRepresentativeCapacity,
#[allow(missing_docs)] CaLegalType,
#[allow(missing_docs)] DocumentNumber,
#[allow(missing_docs)] DunsNumber,
#[allow(missing_docs)] EsIdentification,
#[allow(missing_docs)] EsIdentificationType,
#[allow(missing_docs)] EsLegalForm,
#[allow(missing_docs)] EuCountryOfCitizenship,
#[allow(missing_docs)] FiBusinessNumber,
#[allow(missing_docs)] OnwerFiIdNumber,
#[allow(missing_docs)] FiNationality,
#[allow(missing_docs)] FiOrganizationType,
#[allow(missing_docs)] ItNationality,
#[allow(missing_docs)] ItPin,
#[allow(missing_docs)] ItRegistrantEntityType,
#[allow(missing_docs)] RuPassportData,
#[allow(missing_docs)] SeIdNumber,
#[allow(missing_docs)] SgIdNumber,
#[allow(missing_docs)] UkCompanyNumber,
#[allow(missing_docs)] UkContactType,
#[allow(missing_docs)] VatNumber,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ExtraParamName {
fn from(s: &str) -> Self {
match s {
"AU_ID_NUMBER" => ExtraParamName::AuIdNumber,
"AU_ID_TYPE" => ExtraParamName::AuIdType,
"AU_PRIORITY_TOKEN" => ExtraParamName::AuPriorityToken,
"BIRTH_CITY" => ExtraParamName::BirthCity,
"BIRTH_COUNTRY" => ExtraParamName::BirthCountry,
"BIRTH_DATE_IN_YYYY_MM_DD" => ExtraParamName::BirthDateInYyyyMmDd,
"BIRTH_DEPARTMENT" => ExtraParamName::BirthDepartment,
"BRAND_NUMBER" => ExtraParamName::BrandNumber,
"CA_BUSINESS_ENTITY_TYPE" => ExtraParamName::CaBusinessEntityType,
"CA_LEGAL_REPRESENTATIVE" => ExtraParamName::CaLegalRepresentative,
"CA_LEGAL_REPRESENTATIVE_CAPACITY" => ExtraParamName::CaLegalRepresentativeCapacity,
"CA_LEGAL_TYPE" => ExtraParamName::CaLegalType,
"DOCUMENT_NUMBER" => ExtraParamName::DocumentNumber,
"DUNS_NUMBER" => ExtraParamName::DunsNumber,
"ES_IDENTIFICATION" => ExtraParamName::EsIdentification,
"ES_IDENTIFICATION_TYPE" => ExtraParamName::EsIdentificationType,
"ES_LEGAL_FORM" => ExtraParamName::EsLegalForm,
"EU_COUNTRY_OF_CITIZENSHIP" => ExtraParamName::EuCountryOfCitizenship,
"FI_BUSINESS_NUMBER" => ExtraParamName::FiBusinessNumber,
"FI_ID_NUMBER" => ExtraParamName::OnwerFiIdNumber,
"FI_NATIONALITY" => ExtraParamName::FiNationality,
"FI_ORGANIZATION_TYPE" => ExtraParamName::FiOrganizationType,
"IT_NATIONALITY" => ExtraParamName::ItNationality,
"IT_PIN" => ExtraParamName::ItPin,
"IT_REGISTRANT_ENTITY_TYPE" => ExtraParamName::ItRegistrantEntityType,
"RU_PASSPORT_DATA" => ExtraParamName::RuPassportData,
"SE_ID_NUMBER" => ExtraParamName::SeIdNumber,
"SG_ID_NUMBER" => ExtraParamName::SgIdNumber,
"UK_COMPANY_NUMBER" => ExtraParamName::UkCompanyNumber,
"UK_CONTACT_TYPE" => ExtraParamName::UkContactType,
"VAT_NUMBER" => ExtraParamName::VatNumber,
other => ExtraParamName::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ExtraParamName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ExtraParamName::from(s))
}
}
impl ExtraParamName {
pub fn as_str(&self) -> &str {
match self {
ExtraParamName::AuIdNumber => "AU_ID_NUMBER",
ExtraParamName::AuIdType => "AU_ID_TYPE",
ExtraParamName::AuPriorityToken => "AU_PRIORITY_TOKEN",
ExtraParamName::BirthCity => "BIRTH_CITY",
ExtraParamName::BirthCountry => "BIRTH_COUNTRY",
ExtraParamName::BirthDateInYyyyMmDd => "BIRTH_DATE_IN_YYYY_MM_DD",
ExtraParamName::BirthDepartment => "BIRTH_DEPARTMENT",
ExtraParamName::BrandNumber => "BRAND_NUMBER",
ExtraParamName::CaBusinessEntityType => "CA_BUSINESS_ENTITY_TYPE",
ExtraParamName::CaLegalRepresentative => "CA_LEGAL_REPRESENTATIVE",
ExtraParamName::CaLegalRepresentativeCapacity => "CA_LEGAL_REPRESENTATIVE_CAPACITY",
ExtraParamName::CaLegalType => "CA_LEGAL_TYPE",
ExtraParamName::DocumentNumber => "DOCUMENT_NUMBER",
ExtraParamName::DunsNumber => "DUNS_NUMBER",
ExtraParamName::EsIdentification => "ES_IDENTIFICATION",
ExtraParamName::EsIdentificationType => "ES_IDENTIFICATION_TYPE",
ExtraParamName::EsLegalForm => "ES_LEGAL_FORM",
ExtraParamName::EuCountryOfCitizenship => "EU_COUNTRY_OF_CITIZENSHIP",
ExtraParamName::FiBusinessNumber => "FI_BUSINESS_NUMBER",
ExtraParamName::OnwerFiIdNumber => "FI_ID_NUMBER",
ExtraParamName::FiNationality => "FI_NATIONALITY",
ExtraParamName::FiOrganizationType => "FI_ORGANIZATION_TYPE",
ExtraParamName::ItNationality => "IT_NATIONALITY",
ExtraParamName::ItPin => "IT_PIN",
ExtraParamName::ItRegistrantEntityType => "IT_REGISTRANT_ENTITY_TYPE",
ExtraParamName::RuPassportData => "RU_PASSPORT_DATA",
ExtraParamName::SeIdNumber => "SE_ID_NUMBER",
ExtraParamName::SgIdNumber => "SG_ID_NUMBER",
ExtraParamName::UkCompanyNumber => "UK_COMPANY_NUMBER",
ExtraParamName::UkContactType => "UK_CONTACT_TYPE",
ExtraParamName::VatNumber => "VAT_NUMBER",
ExtraParamName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AU_ID_NUMBER",
"AU_ID_TYPE",
"AU_PRIORITY_TOKEN",
"BIRTH_CITY",
"BIRTH_COUNTRY",
"BIRTH_DATE_IN_YYYY_MM_DD",
"BIRTH_DEPARTMENT",
"BRAND_NUMBER",
"CA_BUSINESS_ENTITY_TYPE",
"CA_LEGAL_REPRESENTATIVE",
"CA_LEGAL_REPRESENTATIVE_CAPACITY",
"CA_LEGAL_TYPE",
"DOCUMENT_NUMBER",
"DUNS_NUMBER",
"ES_IDENTIFICATION",
"ES_IDENTIFICATION_TYPE",
"ES_LEGAL_FORM",
"EU_COUNTRY_OF_CITIZENSHIP",
"FI_BUSINESS_NUMBER",
"FI_ID_NUMBER",
"FI_NATIONALITY",
"FI_ORGANIZATION_TYPE",
"IT_NATIONALITY",
"IT_PIN",
"IT_REGISTRANT_ENTITY_TYPE",
"RU_PASSPORT_DATA",
"SE_ID_NUMBER",
"SG_ID_NUMBER",
"UK_COMPANY_NUMBER",
"UK_CONTACT_TYPE",
"VAT_NUMBER",
]
}
}
impl AsRef<str> for ExtraParamName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[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 CountryCode {
#[allow(missing_docs)] Ac,
#[allow(missing_docs)] Ad,
#[allow(missing_docs)] Ae,
#[allow(missing_docs)] Af,
#[allow(missing_docs)] Ag,
#[allow(missing_docs)] Ai,
#[allow(missing_docs)] Al,
#[allow(missing_docs)] Am,
#[allow(missing_docs)] An,
#[allow(missing_docs)] Ao,
#[allow(missing_docs)] Aq,
#[allow(missing_docs)] Ar,
#[allow(missing_docs)] As,
#[allow(missing_docs)] At,
#[allow(missing_docs)] Au,
#[allow(missing_docs)] Aw,
#[allow(missing_docs)] Ax,
#[allow(missing_docs)] Az,
#[allow(missing_docs)] Ba,
#[allow(missing_docs)] Bb,
#[allow(missing_docs)] Bd,
#[allow(missing_docs)] Be,
#[allow(missing_docs)] Bf,
#[allow(missing_docs)] Bg,
#[allow(missing_docs)] Bh,
#[allow(missing_docs)] Bi,
#[allow(missing_docs)] Bj,
#[allow(missing_docs)] Bl,
#[allow(missing_docs)] Bm,
#[allow(missing_docs)] Bn,
#[allow(missing_docs)] Bo,
#[allow(missing_docs)] Bq,
#[allow(missing_docs)] Br,
#[allow(missing_docs)] Bs,
#[allow(missing_docs)] Bt,
#[allow(missing_docs)] Bv,
#[allow(missing_docs)] Bw,
#[allow(missing_docs)] By,
#[allow(missing_docs)] Bz,
#[allow(missing_docs)] Ca,
#[allow(missing_docs)] Cc,
#[allow(missing_docs)] Cd,
#[allow(missing_docs)] Cf,
#[allow(missing_docs)] Cg,
#[allow(missing_docs)] Ch,
#[allow(missing_docs)] Ci,
#[allow(missing_docs)] Ck,
#[allow(missing_docs)] Cl,
#[allow(missing_docs)] Cm,
#[allow(missing_docs)] Cn,
#[allow(missing_docs)] Co,
#[allow(missing_docs)] Cr,
#[allow(missing_docs)] Cu,
#[allow(missing_docs)] Cv,
#[allow(missing_docs)] Cw,
#[allow(missing_docs)] Cx,
#[allow(missing_docs)] Cy,
#[allow(missing_docs)] Cz,
#[allow(missing_docs)] De,
#[allow(missing_docs)] Dj,
#[allow(missing_docs)] Dk,
#[allow(missing_docs)] Dm,
#[allow(missing_docs)] Do,
#[allow(missing_docs)] Dz,
#[allow(missing_docs)] Ec,
#[allow(missing_docs)] Ee,
#[allow(missing_docs)] Eg,
#[allow(missing_docs)] Eh,
#[allow(missing_docs)] Er,
#[allow(missing_docs)] Es,
#[allow(missing_docs)] Et,
#[allow(missing_docs)] Fi,
#[allow(missing_docs)] Fj,
#[allow(missing_docs)] Fk,
#[allow(missing_docs)] Fm,
#[allow(missing_docs)] Fo,
#[allow(missing_docs)] Fr,
#[allow(missing_docs)] Ga,
#[allow(missing_docs)] Gb,
#[allow(missing_docs)] Gd,
#[allow(missing_docs)] Ge,
#[allow(missing_docs)] Gf,
#[allow(missing_docs)] Gg,
#[allow(missing_docs)] Gh,
#[allow(missing_docs)] Gi,
#[allow(missing_docs)] Gl,
#[allow(missing_docs)] Gm,
#[allow(missing_docs)] Gn,
#[allow(missing_docs)] Gp,
#[allow(missing_docs)] Gq,
#[allow(missing_docs)] Gr,
#[allow(missing_docs)] Gs,
#[allow(missing_docs)] Gt,
#[allow(missing_docs)] Gu,
#[allow(missing_docs)] Gw,
#[allow(missing_docs)] Gy,
#[allow(missing_docs)] Hk,
#[allow(missing_docs)] Hm,
#[allow(missing_docs)] Hn,
#[allow(missing_docs)] Hr,
#[allow(missing_docs)] Ht,
#[allow(missing_docs)] Hu,
#[allow(missing_docs)] Id,
#[allow(missing_docs)] Ie,
#[allow(missing_docs)] Il,
#[allow(missing_docs)] Im,
#[allow(missing_docs)] In,
#[allow(missing_docs)] Io,
#[allow(missing_docs)] Iq,
#[allow(missing_docs)] Ir,
#[allow(missing_docs)] Is,
#[allow(missing_docs)] It,
#[allow(missing_docs)] Je,
#[allow(missing_docs)] Jm,
#[allow(missing_docs)] Jo,
#[allow(missing_docs)] Jp,
#[allow(missing_docs)] Ke,
#[allow(missing_docs)] Kg,
#[allow(missing_docs)] Kh,
#[allow(missing_docs)] Ki,
#[allow(missing_docs)] Km,
#[allow(missing_docs)] Kn,
#[allow(missing_docs)] Kp,
#[allow(missing_docs)] Kr,
#[allow(missing_docs)] Kw,
#[allow(missing_docs)] Ky,
#[allow(missing_docs)] Kz,
#[allow(missing_docs)] La,
#[allow(missing_docs)] Lb,
#[allow(missing_docs)] Lc,
#[allow(missing_docs)] Li,
#[allow(missing_docs)] Lk,
#[allow(missing_docs)] Lr,
#[allow(missing_docs)] Ls,
#[allow(missing_docs)] Lt,
#[allow(missing_docs)] Lu,
#[allow(missing_docs)] Lv,
#[allow(missing_docs)] Ly,
#[allow(missing_docs)] Ma,
#[allow(missing_docs)] Mc,
#[allow(missing_docs)] Md,
#[allow(missing_docs)] Me,
#[allow(missing_docs)] Mf,
#[allow(missing_docs)] Mg,
#[allow(missing_docs)] Mh,
#[allow(missing_docs)] Mk,
#[allow(missing_docs)] Ml,
#[allow(missing_docs)] Mm,
#[allow(missing_docs)] Mn,
#[allow(missing_docs)] Mo,
#[allow(missing_docs)] Mp,
#[allow(missing_docs)] Mq,
#[allow(missing_docs)] Mr,
#[allow(missing_docs)] Ms,
#[allow(missing_docs)] Mt,
#[allow(missing_docs)] Mu,
#[allow(missing_docs)] Mv,
#[allow(missing_docs)] Mw,
#[allow(missing_docs)] Mx,
#[allow(missing_docs)] My,
#[allow(missing_docs)] Mz,
#[allow(missing_docs)] Na,
#[allow(missing_docs)] Nc,
#[allow(missing_docs)] Ne,
#[allow(missing_docs)] Nf,
#[allow(missing_docs)] Ng,
#[allow(missing_docs)] Ni,
#[allow(missing_docs)] Nl,
#[allow(missing_docs)] No,
#[allow(missing_docs)] Np,
#[allow(missing_docs)] Nr,
#[allow(missing_docs)] Nu,
#[allow(missing_docs)] Nz,
#[allow(missing_docs)] Om,
#[allow(missing_docs)] Pa,
#[allow(missing_docs)] Pe,
#[allow(missing_docs)] Pf,
#[allow(missing_docs)] Pg,
#[allow(missing_docs)] Ph,
#[allow(missing_docs)] Pk,
#[allow(missing_docs)] Pl,
#[allow(missing_docs)] Pm,
#[allow(missing_docs)] Pn,
#[allow(missing_docs)] Pr,
#[allow(missing_docs)] Ps,
#[allow(missing_docs)] Pt,
#[allow(missing_docs)] Pw,
#[allow(missing_docs)] Py,
#[allow(missing_docs)] Qa,
#[allow(missing_docs)] Re,
#[allow(missing_docs)] Ro,
#[allow(missing_docs)] Rs,
#[allow(missing_docs)] Ru,
#[allow(missing_docs)] Rw,
#[allow(missing_docs)] Sa,
#[allow(missing_docs)] Sb,
#[allow(missing_docs)] Sc,
#[allow(missing_docs)] Sd,
#[allow(missing_docs)] Se,
#[allow(missing_docs)] Sg,
#[allow(missing_docs)] Sh,
#[allow(missing_docs)] Si,
#[allow(missing_docs)] Sj,
#[allow(missing_docs)] Sk,
#[allow(missing_docs)] Sl,
#[allow(missing_docs)] Sm,
#[allow(missing_docs)] Sn,
#[allow(missing_docs)] So,
#[allow(missing_docs)] Sr,
#[allow(missing_docs)] Ss,
#[allow(missing_docs)] St,
#[allow(missing_docs)] Sv,
#[allow(missing_docs)] Sx,
#[allow(missing_docs)] Sy,
#[allow(missing_docs)] Sz,
#[allow(missing_docs)] Tc,
#[allow(missing_docs)] Td,
#[allow(missing_docs)] Tf,
#[allow(missing_docs)] Tg,
#[allow(missing_docs)] Th,
#[allow(missing_docs)] Tj,
#[allow(missing_docs)] Tk,
#[allow(missing_docs)] Tl,
#[allow(missing_docs)] Tm,
#[allow(missing_docs)] Tn,
#[allow(missing_docs)] To,
#[allow(missing_docs)] Tp,
#[allow(missing_docs)] Tr,
#[allow(missing_docs)] Tt,
#[allow(missing_docs)] Tv,
#[allow(missing_docs)] Tw,
#[allow(missing_docs)] Tz,
#[allow(missing_docs)] Ua,
#[allow(missing_docs)] Ug,
#[allow(missing_docs)] Us,
#[allow(missing_docs)] Uy,
#[allow(missing_docs)] Uz,
#[allow(missing_docs)] Va,
#[allow(missing_docs)] Vc,
#[allow(missing_docs)] Ve,
#[allow(missing_docs)] Vg,
#[allow(missing_docs)] Vi,
#[allow(missing_docs)] Vn,
#[allow(missing_docs)] Vu,
#[allow(missing_docs)] Wf,
#[allow(missing_docs)] Ws,
#[allow(missing_docs)] Ye,
#[allow(missing_docs)] Yt,
#[allow(missing_docs)] Za,
#[allow(missing_docs)] Zm,
#[allow(missing_docs)] Zw,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for CountryCode {
fn from(s: &str) -> Self {
match s {
"AC" => CountryCode::Ac,
"AD" => CountryCode::Ad,
"AE" => CountryCode::Ae,
"AF" => CountryCode::Af,
"AG" => CountryCode::Ag,
"AI" => CountryCode::Ai,
"AL" => CountryCode::Al,
"AM" => CountryCode::Am,
"AN" => CountryCode::An,
"AO" => CountryCode::Ao,
"AQ" => CountryCode::Aq,
"AR" => CountryCode::Ar,
"AS" => CountryCode::As,
"AT" => CountryCode::At,
"AU" => CountryCode::Au,
"AW" => CountryCode::Aw,
"AX" => CountryCode::Ax,
"AZ" => CountryCode::Az,
"BA" => CountryCode::Ba,
"BB" => CountryCode::Bb,
"BD" => CountryCode::Bd,
"BE" => CountryCode::Be,
"BF" => CountryCode::Bf,
"BG" => CountryCode::Bg,
"BH" => CountryCode::Bh,
"BI" => CountryCode::Bi,
"BJ" => CountryCode::Bj,
"BL" => CountryCode::Bl,
"BM" => CountryCode::Bm,
"BN" => CountryCode::Bn,
"BO" => CountryCode::Bo,
"BQ" => CountryCode::Bq,
"BR" => CountryCode::Br,
"BS" => CountryCode::Bs,
"BT" => CountryCode::Bt,
"BV" => CountryCode::Bv,
"BW" => CountryCode::Bw,
"BY" => CountryCode::By,
"BZ" => CountryCode::Bz,
"CA" => CountryCode::Ca,
"CC" => CountryCode::Cc,
"CD" => CountryCode::Cd,
"CF" => CountryCode::Cf,
"CG" => CountryCode::Cg,
"CH" => CountryCode::Ch,
"CI" => CountryCode::Ci,
"CK" => CountryCode::Ck,
"CL" => CountryCode::Cl,
"CM" => CountryCode::Cm,
"CN" => CountryCode::Cn,
"CO" => CountryCode::Co,
"CR" => CountryCode::Cr,
"CU" => CountryCode::Cu,
"CV" => CountryCode::Cv,
"CW" => CountryCode::Cw,
"CX" => CountryCode::Cx,
"CY" => CountryCode::Cy,
"CZ" => CountryCode::Cz,
"DE" => CountryCode::De,
"DJ" => CountryCode::Dj,
"DK" => CountryCode::Dk,
"DM" => CountryCode::Dm,
"DO" => CountryCode::Do,
"DZ" => CountryCode::Dz,
"EC" => CountryCode::Ec,
"EE" => CountryCode::Ee,
"EG" => CountryCode::Eg,
"EH" => CountryCode::Eh,
"ER" => CountryCode::Er,
"ES" => CountryCode::Es,
"ET" => CountryCode::Et,
"FI" => CountryCode::Fi,
"FJ" => CountryCode::Fj,
"FK" => CountryCode::Fk,
"FM" => CountryCode::Fm,
"FO" => CountryCode::Fo,
"FR" => CountryCode::Fr,
"GA" => CountryCode::Ga,
"GB" => CountryCode::Gb,
"GD" => CountryCode::Gd,
"GE" => CountryCode::Ge,
"GF" => CountryCode::Gf,
"GG" => CountryCode::Gg,
"GH" => CountryCode::Gh,
"GI" => CountryCode::Gi,
"GL" => CountryCode::Gl,
"GM" => CountryCode::Gm,
"GN" => CountryCode::Gn,
"GP" => CountryCode::Gp,
"GQ" => CountryCode::Gq,
"GR" => CountryCode::Gr,
"GS" => CountryCode::Gs,
"GT" => CountryCode::Gt,
"GU" => CountryCode::Gu,
"GW" => CountryCode::Gw,
"GY" => CountryCode::Gy,
"HK" => CountryCode::Hk,
"HM" => CountryCode::Hm,
"HN" => CountryCode::Hn,
"HR" => CountryCode::Hr,
"HT" => CountryCode::Ht,
"HU" => CountryCode::Hu,
"ID" => CountryCode::Id,
"IE" => CountryCode::Ie,
"IL" => CountryCode::Il,
"IM" => CountryCode::Im,
"IN" => CountryCode::In,
"IO" => CountryCode::Io,
"IQ" => CountryCode::Iq,
"IR" => CountryCode::Ir,
"IS" => CountryCode::Is,
"IT" => CountryCode::It,
"JE" => CountryCode::Je,
"JM" => CountryCode::Jm,
"JO" => CountryCode::Jo,
"JP" => CountryCode::Jp,
"KE" => CountryCode::Ke,
"KG" => CountryCode::Kg,
"KH" => CountryCode::Kh,
"KI" => CountryCode::Ki,
"KM" => CountryCode::Km,
"KN" => CountryCode::Kn,
"KP" => CountryCode::Kp,
"KR" => CountryCode::Kr,
"KW" => CountryCode::Kw,
"KY" => CountryCode::Ky,
"KZ" => CountryCode::Kz,
"LA" => CountryCode::La,
"LB" => CountryCode::Lb,
"LC" => CountryCode::Lc,
"LI" => CountryCode::Li,
"LK" => CountryCode::Lk,
"LR" => CountryCode::Lr,
"LS" => CountryCode::Ls,
"LT" => CountryCode::Lt,
"LU" => CountryCode::Lu,
"LV" => CountryCode::Lv,
"LY" => CountryCode::Ly,
"MA" => CountryCode::Ma,
"MC" => CountryCode::Mc,
"MD" => CountryCode::Md,
"ME" => CountryCode::Me,
"MF" => CountryCode::Mf,
"MG" => CountryCode::Mg,
"MH" => CountryCode::Mh,
"MK" => CountryCode::Mk,
"ML" => CountryCode::Ml,
"MM" => CountryCode::Mm,
"MN" => CountryCode::Mn,
"MO" => CountryCode::Mo,
"MP" => CountryCode::Mp,
"MQ" => CountryCode::Mq,
"MR" => CountryCode::Mr,
"MS" => CountryCode::Ms,
"MT" => CountryCode::Mt,
"MU" => CountryCode::Mu,
"MV" => CountryCode::Mv,
"MW" => CountryCode::Mw,
"MX" => CountryCode::Mx,
"MY" => CountryCode::My,
"MZ" => CountryCode::Mz,
"NA" => CountryCode::Na,
"NC" => CountryCode::Nc,
"NE" => CountryCode::Ne,
"NF" => CountryCode::Nf,
"NG" => CountryCode::Ng,
"NI" => CountryCode::Ni,
"NL" => CountryCode::Nl,
"NO" => CountryCode::No,
"NP" => CountryCode::Np,
"NR" => CountryCode::Nr,
"NU" => CountryCode::Nu,
"NZ" => CountryCode::Nz,
"OM" => CountryCode::Om,
"PA" => CountryCode::Pa,
"PE" => CountryCode::Pe,
"PF" => CountryCode::Pf,
"PG" => CountryCode::Pg,
"PH" => CountryCode::Ph,
"PK" => CountryCode::Pk,
"PL" => CountryCode::Pl,
"PM" => CountryCode::Pm,
"PN" => CountryCode::Pn,
"PR" => CountryCode::Pr,
"PS" => CountryCode::Ps,
"PT" => CountryCode::Pt,
"PW" => CountryCode::Pw,
"PY" => CountryCode::Py,
"QA" => CountryCode::Qa,
"RE" => CountryCode::Re,
"RO" => CountryCode::Ro,
"RS" => CountryCode::Rs,
"RU" => CountryCode::Ru,
"RW" => CountryCode::Rw,
"SA" => CountryCode::Sa,
"SB" => CountryCode::Sb,
"SC" => CountryCode::Sc,
"SD" => CountryCode::Sd,
"SE" => CountryCode::Se,
"SG" => CountryCode::Sg,
"SH" => CountryCode::Sh,
"SI" => CountryCode::Si,
"SJ" => CountryCode::Sj,
"SK" => CountryCode::Sk,
"SL" => CountryCode::Sl,
"SM" => CountryCode::Sm,
"SN" => CountryCode::Sn,
"SO" => CountryCode::So,
"SR" => CountryCode::Sr,
"SS" => CountryCode::Ss,
"ST" => CountryCode::St,
"SV" => CountryCode::Sv,
"SX" => CountryCode::Sx,
"SY" => CountryCode::Sy,
"SZ" => CountryCode::Sz,
"TC" => CountryCode::Tc,
"TD" => CountryCode::Td,
"TF" => CountryCode::Tf,
"TG" => CountryCode::Tg,
"TH" => CountryCode::Th,
"TJ" => CountryCode::Tj,
"TK" => CountryCode::Tk,
"TL" => CountryCode::Tl,
"TM" => CountryCode::Tm,
"TN" => CountryCode::Tn,
"TO" => CountryCode::To,
"TP" => CountryCode::Tp,
"TR" => CountryCode::Tr,
"TT" => CountryCode::Tt,
"TV" => CountryCode::Tv,
"TW" => CountryCode::Tw,
"TZ" => CountryCode::Tz,
"UA" => CountryCode::Ua,
"UG" => CountryCode::Ug,
"US" => CountryCode::Us,
"UY" => CountryCode::Uy,
"UZ" => CountryCode::Uz,
"VA" => CountryCode::Va,
"VC" => CountryCode::Vc,
"VE" => CountryCode::Ve,
"VG" => CountryCode::Vg,
"VI" => CountryCode::Vi,
"VN" => CountryCode::Vn,
"VU" => CountryCode::Vu,
"WF" => CountryCode::Wf,
"WS" => CountryCode::Ws,
"YE" => CountryCode::Ye,
"YT" => CountryCode::Yt,
"ZA" => CountryCode::Za,
"ZM" => CountryCode::Zm,
"ZW" => CountryCode::Zw,
other => CountryCode::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for CountryCode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CountryCode::from(s))
}
}
impl CountryCode {
pub fn as_str(&self) -> &str {
match self {
CountryCode::Ac => "AC",
CountryCode::Ad => "AD",
CountryCode::Ae => "AE",
CountryCode::Af => "AF",
CountryCode::Ag => "AG",
CountryCode::Ai => "AI",
CountryCode::Al => "AL",
CountryCode::Am => "AM",
CountryCode::An => "AN",
CountryCode::Ao => "AO",
CountryCode::Aq => "AQ",
CountryCode::Ar => "AR",
CountryCode::As => "AS",
CountryCode::At => "AT",
CountryCode::Au => "AU",
CountryCode::Aw => "AW",
CountryCode::Ax => "AX",
CountryCode::Az => "AZ",
CountryCode::Ba => "BA",
CountryCode::Bb => "BB",
CountryCode::Bd => "BD",
CountryCode::Be => "BE",
CountryCode::Bf => "BF",
CountryCode::Bg => "BG",
CountryCode::Bh => "BH",
CountryCode::Bi => "BI",
CountryCode::Bj => "BJ",
CountryCode::Bl => "BL",
CountryCode::Bm => "BM",
CountryCode::Bn => "BN",
CountryCode::Bo => "BO",
CountryCode::Bq => "BQ",
CountryCode::Br => "BR",
CountryCode::Bs => "BS",
CountryCode::Bt => "BT",
CountryCode::Bv => "BV",
CountryCode::Bw => "BW",
CountryCode::By => "BY",
CountryCode::Bz => "BZ",
CountryCode::Ca => "CA",
CountryCode::Cc => "CC",
CountryCode::Cd => "CD",
CountryCode::Cf => "CF",
CountryCode::Cg => "CG",
CountryCode::Ch => "CH",
CountryCode::Ci => "CI",
CountryCode::Ck => "CK",
CountryCode::Cl => "CL",
CountryCode::Cm => "CM",
CountryCode::Cn => "CN",
CountryCode::Co => "CO",
CountryCode::Cr => "CR",
CountryCode::Cu => "CU",
CountryCode::Cv => "CV",
CountryCode::Cw => "CW",
CountryCode::Cx => "CX",
CountryCode::Cy => "CY",
CountryCode::Cz => "CZ",
CountryCode::De => "DE",
CountryCode::Dj => "DJ",
CountryCode::Dk => "DK",
CountryCode::Dm => "DM",
CountryCode::Do => "DO",
CountryCode::Dz => "DZ",
CountryCode::Ec => "EC",
CountryCode::Ee => "EE",
CountryCode::Eg => "EG",
CountryCode::Eh => "EH",
CountryCode::Er => "ER",
CountryCode::Es => "ES",
CountryCode::Et => "ET",
CountryCode::Fi => "FI",
CountryCode::Fj => "FJ",
CountryCode::Fk => "FK",
CountryCode::Fm => "FM",
CountryCode::Fo => "FO",
CountryCode::Fr => "FR",
CountryCode::Ga => "GA",
CountryCode::Gb => "GB",
CountryCode::Gd => "GD",
CountryCode::Ge => "GE",
CountryCode::Gf => "GF",
CountryCode::Gg => "GG",
CountryCode::Gh => "GH",
CountryCode::Gi => "GI",
CountryCode::Gl => "GL",
CountryCode::Gm => "GM",
CountryCode::Gn => "GN",
CountryCode::Gp => "GP",
CountryCode::Gq => "GQ",
CountryCode::Gr => "GR",
CountryCode::Gs => "GS",
CountryCode::Gt => "GT",
CountryCode::Gu => "GU",
CountryCode::Gw => "GW",
CountryCode::Gy => "GY",
CountryCode::Hk => "HK",
CountryCode::Hm => "HM",
CountryCode::Hn => "HN",
CountryCode::Hr => "HR",
CountryCode::Ht => "HT",
CountryCode::Hu => "HU",
CountryCode::Id => "ID",
CountryCode::Ie => "IE",
CountryCode::Il => "IL",
CountryCode::Im => "IM",
CountryCode::In => "IN",
CountryCode::Io => "IO",
CountryCode::Iq => "IQ",
CountryCode::Ir => "IR",
CountryCode::Is => "IS",
CountryCode::It => "IT",
CountryCode::Je => "JE",
CountryCode::Jm => "JM",
CountryCode::Jo => "JO",
CountryCode::Jp => "JP",
CountryCode::Ke => "KE",
CountryCode::Kg => "KG",
CountryCode::Kh => "KH",
CountryCode::Ki => "KI",
CountryCode::Km => "KM",
CountryCode::Kn => "KN",
CountryCode::Kp => "KP",
CountryCode::Kr => "KR",
CountryCode::Kw => "KW",
CountryCode::Ky => "KY",
CountryCode::Kz => "KZ",
CountryCode::La => "LA",
CountryCode::Lb => "LB",
CountryCode::Lc => "LC",
CountryCode::Li => "LI",
CountryCode::Lk => "LK",
CountryCode::Lr => "LR",
CountryCode::Ls => "LS",
CountryCode::Lt => "LT",
CountryCode::Lu => "LU",
CountryCode::Lv => "LV",
CountryCode::Ly => "LY",
CountryCode::Ma => "MA",
CountryCode::Mc => "MC",
CountryCode::Md => "MD",
CountryCode::Me => "ME",
CountryCode::Mf => "MF",
CountryCode::Mg => "MG",
CountryCode::Mh => "MH",
CountryCode::Mk => "MK",
CountryCode::Ml => "ML",
CountryCode::Mm => "MM",
CountryCode::Mn => "MN",
CountryCode::Mo => "MO",
CountryCode::Mp => "MP",
CountryCode::Mq => "MQ",
CountryCode::Mr => "MR",
CountryCode::Ms => "MS",
CountryCode::Mt => "MT",
CountryCode::Mu => "MU",
CountryCode::Mv => "MV",
CountryCode::Mw => "MW",
CountryCode::Mx => "MX",
CountryCode::My => "MY",
CountryCode::Mz => "MZ",
CountryCode::Na => "NA",
CountryCode::Nc => "NC",
CountryCode::Ne => "NE",
CountryCode::Nf => "NF",
CountryCode::Ng => "NG",
CountryCode::Ni => "NI",
CountryCode::Nl => "NL",
CountryCode::No => "NO",
CountryCode::Np => "NP",
CountryCode::Nr => "NR",
CountryCode::Nu => "NU",
CountryCode::Nz => "NZ",
CountryCode::Om => "OM",
CountryCode::Pa => "PA",
CountryCode::Pe => "PE",
CountryCode::Pf => "PF",
CountryCode::Pg => "PG",
CountryCode::Ph => "PH",
CountryCode::Pk => "PK",
CountryCode::Pl => "PL",
CountryCode::Pm => "PM",
CountryCode::Pn => "PN",
CountryCode::Pr => "PR",
CountryCode::Ps => "PS",
CountryCode::Pt => "PT",
CountryCode::Pw => "PW",
CountryCode::Py => "PY",
CountryCode::Qa => "QA",
CountryCode::Re => "RE",
CountryCode::Ro => "RO",
CountryCode::Rs => "RS",
CountryCode::Ru => "RU",
CountryCode::Rw => "RW",
CountryCode::Sa => "SA",
CountryCode::Sb => "SB",
CountryCode::Sc => "SC",
CountryCode::Sd => "SD",
CountryCode::Se => "SE",
CountryCode::Sg => "SG",
CountryCode::Sh => "SH",
CountryCode::Si => "SI",
CountryCode::Sj => "SJ",
CountryCode::Sk => "SK",
CountryCode::Sl => "SL",
CountryCode::Sm => "SM",
CountryCode::Sn => "SN",
CountryCode::So => "SO",
CountryCode::Sr => "SR",
CountryCode::Ss => "SS",
CountryCode::St => "ST",
CountryCode::Sv => "SV",
CountryCode::Sx => "SX",
CountryCode::Sy => "SY",
CountryCode::Sz => "SZ",
CountryCode::Tc => "TC",
CountryCode::Td => "TD",
CountryCode::Tf => "TF",
CountryCode::Tg => "TG",
CountryCode::Th => "TH",
CountryCode::Tj => "TJ",
CountryCode::Tk => "TK",
CountryCode::Tl => "TL",
CountryCode::Tm => "TM",
CountryCode::Tn => "TN",
CountryCode::To => "TO",
CountryCode::Tp => "TP",
CountryCode::Tr => "TR",
CountryCode::Tt => "TT",
CountryCode::Tv => "TV",
CountryCode::Tw => "TW",
CountryCode::Tz => "TZ",
CountryCode::Ua => "UA",
CountryCode::Ug => "UG",
CountryCode::Us => "US",
CountryCode::Uy => "UY",
CountryCode::Uz => "UZ",
CountryCode::Va => "VA",
CountryCode::Vc => "VC",
CountryCode::Ve => "VE",
CountryCode::Vg => "VG",
CountryCode::Vi => "VI",
CountryCode::Vn => "VN",
CountryCode::Vu => "VU",
CountryCode::Wf => "WF",
CountryCode::Ws => "WS",
CountryCode::Ye => "YE",
CountryCode::Yt => "YT",
CountryCode::Za => "ZA",
CountryCode::Zm => "ZM",
CountryCode::Zw => "ZW",
CountryCode::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AC", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT",
"AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL",
"BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD",
"CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX",
"CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES",
"ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH",
"GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM",
"HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT",
"JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY",
"KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC",
"MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS",
"MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL",
"NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM",
"PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB",
"SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS",
"ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM",
"TN", "TO", "TP", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA",
"VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW",
]
}
}
impl AsRef<str> for CountryCode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[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 ContactType {
#[allow(missing_docs)] Association,
#[allow(missing_docs)] Company,
#[allow(missing_docs)] Person,
#[allow(missing_docs)] PublicBody,
#[allow(missing_docs)] Reseller,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ContactType {
fn from(s: &str) -> Self {
match s {
"ASSOCIATION" => ContactType::Association,
"COMPANY" => ContactType::Company,
"PERSON" => ContactType::Person,
"PUBLIC_BODY" => ContactType::PublicBody,
"RESELLER" => ContactType::Reseller,
other => ContactType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ContactType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ContactType::from(s))
}
}
impl ContactType {
pub fn as_str(&self) -> &str {
match self {
ContactType::Association => "ASSOCIATION",
ContactType::Company => "COMPANY",
ContactType::Person => "PERSON",
ContactType::PublicBody => "PUBLIC_BODY",
ContactType::Reseller => "RESELLER",
ContactType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ASSOCIATION",
"COMPANY",
"PERSON",
"PUBLIC_BODY",
"RESELLER",
]
}
}
impl AsRef<str> for ContactType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DomainPrice {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub registration_price: std::option::Option<crate::model::PriceWithCurrency>,
#[doc(hidden)]
pub transfer_price: std::option::Option<crate::model::PriceWithCurrency>,
#[doc(hidden)]
pub renewal_price: std::option::Option<crate::model::PriceWithCurrency>,
#[doc(hidden)]
pub change_ownership_price: std::option::Option<crate::model::PriceWithCurrency>,
#[doc(hidden)]
pub restoration_price: std::option::Option<crate::model::PriceWithCurrency>,
}
impl DomainPrice {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn registration_price(&self) -> std::option::Option<&crate::model::PriceWithCurrency> {
self.registration_price.as_ref()
}
pub fn transfer_price(&self) -> std::option::Option<&crate::model::PriceWithCurrency> {
self.transfer_price.as_ref()
}
pub fn renewal_price(&self) -> std::option::Option<&crate::model::PriceWithCurrency> {
self.renewal_price.as_ref()
}
pub fn change_ownership_price(&self) -> std::option::Option<&crate::model::PriceWithCurrency> {
self.change_ownership_price.as_ref()
}
pub fn restoration_price(&self) -> std::option::Option<&crate::model::PriceWithCurrency> {
self.restoration_price.as_ref()
}
}
pub mod domain_price {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) registration_price: std::option::Option<crate::model::PriceWithCurrency>,
pub(crate) transfer_price: std::option::Option<crate::model::PriceWithCurrency>,
pub(crate) renewal_price: std::option::Option<crate::model::PriceWithCurrency>,
pub(crate) change_ownership_price: std::option::Option<crate::model::PriceWithCurrency>,
pub(crate) restoration_price: std::option::Option<crate::model::PriceWithCurrency>,
}
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 registration_price(mut self, input: crate::model::PriceWithCurrency) -> Self {
self.registration_price = Some(input);
self
}
pub fn set_registration_price(
mut self,
input: std::option::Option<crate::model::PriceWithCurrency>,
) -> Self {
self.registration_price = input;
self
}
pub fn transfer_price(mut self, input: crate::model::PriceWithCurrency) -> Self {
self.transfer_price = Some(input);
self
}
pub fn set_transfer_price(
mut self,
input: std::option::Option<crate::model::PriceWithCurrency>,
) -> Self {
self.transfer_price = input;
self
}
pub fn renewal_price(mut self, input: crate::model::PriceWithCurrency) -> Self {
self.renewal_price = Some(input);
self
}
pub fn set_renewal_price(
mut self,
input: std::option::Option<crate::model::PriceWithCurrency>,
) -> Self {
self.renewal_price = input;
self
}
pub fn change_ownership_price(mut self, input: crate::model::PriceWithCurrency) -> Self {
self.change_ownership_price = Some(input);
self
}
pub fn set_change_ownership_price(
mut self,
input: std::option::Option<crate::model::PriceWithCurrency>,
) -> Self {
self.change_ownership_price = input;
self
}
pub fn restoration_price(mut self, input: crate::model::PriceWithCurrency) -> Self {
self.restoration_price = Some(input);
self
}
pub fn set_restoration_price(
mut self,
input: std::option::Option<crate::model::PriceWithCurrency>,
) -> Self {
self.restoration_price = input;
self
}
pub fn build(self) -> crate::model::DomainPrice {
crate::model::DomainPrice {
name: self.name,
registration_price: self.registration_price,
transfer_price: self.transfer_price,
renewal_price: self.renewal_price,
change_ownership_price: self.change_ownership_price,
restoration_price: self.restoration_price,
}
}
}
}
impl DomainPrice {
pub fn builder() -> crate::model::domain_price::Builder {
crate::model::domain_price::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PriceWithCurrency {
#[doc(hidden)]
pub price: f64,
#[doc(hidden)]
pub currency: std::option::Option<std::string::String>,
}
impl PriceWithCurrency {
pub fn price(&self) -> f64 {
self.price
}
pub fn currency(&self) -> std::option::Option<&str> {
self.currency.as_deref()
}
}
pub mod price_with_currency {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) price: std::option::Option<f64>,
pub(crate) currency: std::option::Option<std::string::String>,
}
impl Builder {
pub fn price(mut self, input: f64) -> Self {
self.price = Some(input);
self
}
pub fn set_price(mut self, input: std::option::Option<f64>) -> Self {
self.price = input;
self
}
pub fn currency(mut self, input: impl Into<std::string::String>) -> Self {
self.currency = Some(input.into());
self
}
pub fn set_currency(mut self, input: std::option::Option<std::string::String>) -> Self {
self.currency = input;
self
}
pub fn build(self) -> crate::model::PriceWithCurrency {
crate::model::PriceWithCurrency {
price: self.price.unwrap_or_default(),
currency: self.currency,
}
}
}
}
impl PriceWithCurrency {
pub fn builder() -> crate::model::price_with_currency::Builder {
crate::model::price_with_currency::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OperationSummary {
#[doc(hidden)]
pub operation_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::OperationStatus>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::OperationType>,
#[doc(hidden)]
pub submitted_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub domain_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status_flag: std::option::Option<crate::model::StatusFlag>,
#[doc(hidden)]
pub last_updated_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl OperationSummary {
pub fn operation_id(&self) -> std::option::Option<&str> {
self.operation_id.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::OperationStatus> {
self.status.as_ref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::OperationType> {
self.r#type.as_ref()
}
pub fn submitted_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.submitted_date.as_ref()
}
pub fn domain_name(&self) -> std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
pub fn status_flag(&self) -> std::option::Option<&crate::model::StatusFlag> {
self.status_flag.as_ref()
}
pub fn last_updated_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated_date.as_ref()
}
}
pub mod operation_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) operation_id: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::OperationStatus>,
pub(crate) r#type: std::option::Option<crate::model::OperationType>,
pub(crate) submitted_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) status_flag: std::option::Option<crate::model::StatusFlag>,
pub(crate) last_updated_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn operation_id(mut self, input: impl Into<std::string::String>) -> Self {
self.operation_id = Some(input.into());
self
}
pub fn set_operation_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.operation_id = input;
self
}
pub fn status(mut self, input: crate::model::OperationStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::OperationStatus>,
) -> Self {
self.status = input;
self
}
pub fn r#type(mut self, input: crate::model::OperationType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::OperationType>) -> Self {
self.r#type = input;
self
}
pub fn submitted_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.submitted_date = Some(input);
self
}
pub fn set_submitted_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.submitted_date = input;
self
}
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.domain_name = Some(input.into());
self
}
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn status_flag(mut self, input: crate::model::StatusFlag) -> Self {
self.status_flag = Some(input);
self
}
pub fn set_status_flag(
mut self,
input: std::option::Option<crate::model::StatusFlag>,
) -> Self {
self.status_flag = input;
self
}
pub fn last_updated_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated_date = Some(input);
self
}
pub fn set_last_updated_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated_date = input;
self
}
pub fn build(self) -> crate::model::OperationSummary {
crate::model::OperationSummary {
operation_id: self.operation_id,
status: self.status,
r#type: self.r#type,
submitted_date: self.submitted_date,
domain_name: self.domain_name,
message: self.message,
status_flag: self.status_flag,
last_updated_date: self.last_updated_date,
}
}
}
}
impl OperationSummary {
pub fn builder() -> crate::model::operation_summary::Builder {
crate::model::operation_summary::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 StatusFlag {
#[allow(missing_docs)] PendingAcceptance,
#[allow(missing_docs)] PendingAuthorization,
#[allow(missing_docs)] PendingCustomerAction,
#[allow(missing_docs)] PendingPaymentVerification,
#[allow(missing_docs)] PendingSupportCase,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for StatusFlag {
fn from(s: &str) -> Self {
match s {
"PENDING_ACCEPTANCE" => StatusFlag::PendingAcceptance,
"PENDING_AUTHORIZATION" => StatusFlag::PendingAuthorization,
"PENDING_CUSTOMER_ACTION" => StatusFlag::PendingCustomerAction,
"PENDING_PAYMENT_VERIFICATION" => StatusFlag::PendingPaymentVerification,
"PENDING_SUPPORT_CASE" => StatusFlag::PendingSupportCase,
other => StatusFlag::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for StatusFlag {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(StatusFlag::from(s))
}
}
impl StatusFlag {
pub fn as_str(&self) -> &str {
match self {
StatusFlag::PendingAcceptance => "PENDING_ACCEPTANCE",
StatusFlag::PendingAuthorization => "PENDING_AUTHORIZATION",
StatusFlag::PendingCustomerAction => "PENDING_CUSTOMER_ACTION",
StatusFlag::PendingPaymentVerification => "PENDING_PAYMENT_VERIFICATION",
StatusFlag::PendingSupportCase => "PENDING_SUPPORT_CASE",
StatusFlag::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"PENDING_ACCEPTANCE",
"PENDING_AUTHORIZATION",
"PENDING_CUSTOMER_ACTION",
"PENDING_PAYMENT_VERIFICATION",
"PENDING_SUPPORT_CASE",
]
}
}
impl AsRef<str> for StatusFlag {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[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 OperationStatus {
#[allow(missing_docs)] Error,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] InProgress,
#[allow(missing_docs)] Submitted,
#[allow(missing_docs)] Successful,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for OperationStatus {
fn from(s: &str) -> Self {
match s {
"ERROR" => OperationStatus::Error,
"FAILED" => OperationStatus::Failed,
"IN_PROGRESS" => OperationStatus::InProgress,
"SUBMITTED" => OperationStatus::Submitted,
"SUCCESSFUL" => OperationStatus::Successful,
other => OperationStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for OperationStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(OperationStatus::from(s))
}
}
impl OperationStatus {
pub fn as_str(&self) -> &str {
match self {
OperationStatus::Error => "ERROR",
OperationStatus::Failed => "FAILED",
OperationStatus::InProgress => "IN_PROGRESS",
OperationStatus::Submitted => "SUBMITTED",
OperationStatus::Successful => "SUCCESSFUL",
OperationStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ERROR", "FAILED", "IN_PROGRESS", "SUBMITTED", "SUCCESSFUL"]
}
}
impl AsRef<str> for OperationStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[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 SortOrder {
#[allow(missing_docs)] Asc,
#[allow(missing_docs)] Desc,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SortOrder {
fn from(s: &str) -> Self {
match s {
"ASC" => SortOrder::Asc,
"DESC" => SortOrder::Desc,
other => SortOrder::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for SortOrder {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SortOrder::from(s))
}
}
impl SortOrder {
pub fn as_str(&self) -> &str {
match self {
SortOrder::Asc => "ASC",
SortOrder::Desc => "DESC",
SortOrder::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ASC", "DESC"]
}
}
impl AsRef<str> for SortOrder {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[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 ListOperationsSortAttributeName {
#[allow(missing_docs)] SubmittedDate,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ListOperationsSortAttributeName {
fn from(s: &str) -> Self {
match s {
"SubmittedDate" => ListOperationsSortAttributeName::SubmittedDate,
other => ListOperationsSortAttributeName::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for ListOperationsSortAttributeName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ListOperationsSortAttributeName::from(s))
}
}
impl ListOperationsSortAttributeName {
pub fn as_str(&self) -> &str {
match self {
ListOperationsSortAttributeName::SubmittedDate => "SubmittedDate",
ListOperationsSortAttributeName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["SubmittedDate"]
}
}
impl AsRef<str> for ListOperationsSortAttributeName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DomainSummary {
#[doc(hidden)]
pub domain_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub auto_renew: std::option::Option<bool>,
#[doc(hidden)]
pub transfer_lock: std::option::Option<bool>,
#[doc(hidden)]
pub expiry: std::option::Option<aws_smithy_types::DateTime>,
}
impl DomainSummary {
pub fn domain_name(&self) -> std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn auto_renew(&self) -> std::option::Option<bool> {
self.auto_renew
}
pub fn transfer_lock(&self) -> std::option::Option<bool> {
self.transfer_lock
}
pub fn expiry(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.expiry.as_ref()
}
}
pub mod domain_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) auto_renew: std::option::Option<bool>,
pub(crate) transfer_lock: std::option::Option<bool>,
pub(crate) expiry: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.domain_name = Some(input.into());
self
}
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn auto_renew(mut self, input: bool) -> Self {
self.auto_renew = Some(input);
self
}
pub fn set_auto_renew(mut self, input: std::option::Option<bool>) -> Self {
self.auto_renew = input;
self
}
pub fn transfer_lock(mut self, input: bool) -> Self {
self.transfer_lock = Some(input);
self
}
pub fn set_transfer_lock(mut self, input: std::option::Option<bool>) -> Self {
self.transfer_lock = input;
self
}
pub fn expiry(mut self, input: aws_smithy_types::DateTime) -> Self {
self.expiry = Some(input);
self
}
pub fn set_expiry(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.expiry = input;
self
}
pub fn build(self) -> crate::model::DomainSummary {
crate::model::DomainSummary {
domain_name: self.domain_name,
auto_renew: self.auto_renew,
transfer_lock: self.transfer_lock,
expiry: self.expiry,
}
}
}
}
impl DomainSummary {
pub fn builder() -> crate::model::domain_summary::Builder {
crate::model::domain_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SortCondition {
#[doc(hidden)]
pub name: std::option::Option<crate::model::ListDomainsAttributeName>,
#[doc(hidden)]
pub sort_order: std::option::Option<crate::model::SortOrder>,
}
impl SortCondition {
pub fn name(&self) -> std::option::Option<&crate::model::ListDomainsAttributeName> {
self.name.as_ref()
}
pub fn sort_order(&self) -> std::option::Option<&crate::model::SortOrder> {
self.sort_order.as_ref()
}
}
pub mod sort_condition {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::ListDomainsAttributeName>,
pub(crate) sort_order: std::option::Option<crate::model::SortOrder>,
}
impl Builder {
pub fn name(mut self, input: crate::model::ListDomainsAttributeName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::ListDomainsAttributeName>,
) -> Self {
self.name = input;
self
}
pub fn sort_order(mut self, input: crate::model::SortOrder) -> Self {
self.sort_order = Some(input);
self
}
pub fn set_sort_order(
mut self,
input: std::option::Option<crate::model::SortOrder>,
) -> Self {
self.sort_order = input;
self
}
pub fn build(self) -> crate::model::SortCondition {
crate::model::SortCondition {
name: self.name,
sort_order: self.sort_order,
}
}
}
}
impl SortCondition {
pub fn builder() -> crate::model::sort_condition::Builder {
crate::model::sort_condition::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 ListDomainsAttributeName {
#[allow(missing_docs)] DomainName,
#[allow(missing_docs)] Expiry,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ListDomainsAttributeName {
fn from(s: &str) -> Self {
match s {
"DomainName" => ListDomainsAttributeName::DomainName,
"Expiry" => ListDomainsAttributeName::Expiry,
other => ListDomainsAttributeName::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for ListDomainsAttributeName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ListDomainsAttributeName::from(s))
}
}
impl ListDomainsAttributeName {
pub fn as_str(&self) -> &str {
match self {
ListDomainsAttributeName::DomainName => "DomainName",
ListDomainsAttributeName::Expiry => "Expiry",
ListDomainsAttributeName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["DomainName", "Expiry"]
}
}
impl AsRef<str> for ListDomainsAttributeName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FilterCondition {
#[doc(hidden)]
pub name: std::option::Option<crate::model::ListDomainsAttributeName>,
#[doc(hidden)]
pub operator: std::option::Option<crate::model::Operator>,
#[doc(hidden)]
pub values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl FilterCondition {
pub fn name(&self) -> std::option::Option<&crate::model::ListDomainsAttributeName> {
self.name.as_ref()
}
pub fn operator(&self) -> std::option::Option<&crate::model::Operator> {
self.operator.as_ref()
}
pub fn values(&self) -> std::option::Option<&[std::string::String]> {
self.values.as_deref()
}
}
pub mod filter_condition {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::ListDomainsAttributeName>,
pub(crate) operator: std::option::Option<crate::model::Operator>,
pub(crate) values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: crate::model::ListDomainsAttributeName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::ListDomainsAttributeName>,
) -> Self {
self.name = input;
self
}
pub fn operator(mut self, input: crate::model::Operator) -> Self {
self.operator = Some(input);
self
}
pub fn set_operator(mut self, input: std::option::Option<crate::model::Operator>) -> Self {
self.operator = input;
self
}
pub fn values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.values.unwrap_or_default();
v.push(input.into());
self.values = Some(v);
self
}
pub fn set_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.values = input;
self
}
pub fn build(self) -> crate::model::FilterCondition {
crate::model::FilterCondition {
name: self.name,
operator: self.operator,
values: self.values,
}
}
}
}
impl FilterCondition {
pub fn builder() -> crate::model::filter_condition::Builder {
crate::model::filter_condition::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 Operator {
#[allow(missing_docs)] BeginsWith,
#[allow(missing_docs)] Ge,
#[allow(missing_docs)] Le,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Operator {
fn from(s: &str) -> Self {
match s {
"BEGINS_WITH" => Operator::BeginsWith,
"GE" => Operator::Ge,
"LE" => Operator::Le,
other => Operator::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Operator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Operator::from(s))
}
}
impl Operator {
pub fn as_str(&self) -> &str {
match self {
Operator::BeginsWith => "BEGINS_WITH",
Operator::Ge => "GE",
Operator::Le => "LE",
Operator::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["BEGINS_WITH", "GE", "LE"]
}
}
impl AsRef<str> for Operator {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DomainSuggestion {
#[doc(hidden)]
pub domain_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub availability: std::option::Option<std::string::String>,
}
impl DomainSuggestion {
pub fn domain_name(&self) -> std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn availability(&self) -> std::option::Option<&str> {
self.availability.as_deref()
}
}
pub mod domain_suggestion {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) availability: std::option::Option<std::string::String>,
}
impl Builder {
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.domain_name = Some(input.into());
self
}
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn availability(mut self, input: impl Into<std::string::String>) -> Self {
self.availability = Some(input.into());
self
}
pub fn set_availability(mut self, input: std::option::Option<std::string::String>) -> Self {
self.availability = input;
self
}
pub fn build(self) -> crate::model::DomainSuggestion {
crate::model::DomainSuggestion {
domain_name: self.domain_name,
availability: self.availability,
}
}
}
}
impl DomainSuggestion {
pub fn builder() -> crate::model::domain_suggestion::Builder {
crate::model::domain_suggestion::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DnssecKey {
#[doc(hidden)]
pub algorithm: std::option::Option<i32>,
#[doc(hidden)]
pub flags: std::option::Option<i32>,
#[doc(hidden)]
pub public_key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub digest_type: std::option::Option<i32>,
#[doc(hidden)]
pub digest: std::option::Option<std::string::String>,
#[doc(hidden)]
pub key_tag: std::option::Option<i32>,
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
}
impl DnssecKey {
pub fn algorithm(&self) -> std::option::Option<i32> {
self.algorithm
}
pub fn flags(&self) -> std::option::Option<i32> {
self.flags
}
pub fn public_key(&self) -> std::option::Option<&str> {
self.public_key.as_deref()
}
pub fn digest_type(&self) -> std::option::Option<i32> {
self.digest_type
}
pub fn digest(&self) -> std::option::Option<&str> {
self.digest.as_deref()
}
pub fn key_tag(&self) -> std::option::Option<i32> {
self.key_tag
}
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
}
pub mod dnssec_key {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) algorithm: std::option::Option<i32>,
pub(crate) flags: std::option::Option<i32>,
pub(crate) public_key: std::option::Option<std::string::String>,
pub(crate) digest_type: std::option::Option<i32>,
pub(crate) digest: std::option::Option<std::string::String>,
pub(crate) key_tag: std::option::Option<i32>,
pub(crate) id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn algorithm(mut self, input: i32) -> Self {
self.algorithm = Some(input);
self
}
pub fn set_algorithm(mut self, input: std::option::Option<i32>) -> Self {
self.algorithm = input;
self
}
pub fn flags(mut self, input: i32) -> Self {
self.flags = Some(input);
self
}
pub fn set_flags(mut self, input: std::option::Option<i32>) -> Self {
self.flags = input;
self
}
pub fn public_key(mut self, input: impl Into<std::string::String>) -> Self {
self.public_key = Some(input.into());
self
}
pub fn set_public_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.public_key = input;
self
}
pub fn digest_type(mut self, input: i32) -> Self {
self.digest_type = Some(input);
self
}
pub fn set_digest_type(mut self, input: std::option::Option<i32>) -> Self {
self.digest_type = input;
self
}
pub fn digest(mut self, input: impl Into<std::string::String>) -> Self {
self.digest = Some(input.into());
self
}
pub fn set_digest(mut self, input: std::option::Option<std::string::String>) -> Self {
self.digest = input;
self
}
pub fn key_tag(mut self, input: i32) -> Self {
self.key_tag = Some(input);
self
}
pub fn set_key_tag(mut self, input: std::option::Option<i32>) -> Self {
self.key_tag = input;
self
}
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn build(self) -> crate::model::DnssecKey {
crate::model::DnssecKey {
algorithm: self.algorithm,
flags: self.flags,
public_key: self.public_key,
digest_type: self.digest_type,
digest: self.digest,
key_tag: self.key_tag,
id: self.id,
}
}
}
}
impl DnssecKey {
pub fn builder() -> crate::model::dnssec_key::Builder {
crate::model::dnssec_key::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 ReachabilityStatus {
#[allow(missing_docs)] Done,
#[allow(missing_docs)] Expired,
#[allow(missing_docs)] Pending,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ReachabilityStatus {
fn from(s: &str) -> Self {
match s {
"DONE" => ReachabilityStatus::Done,
"EXPIRED" => ReachabilityStatus::Expired,
"PENDING" => ReachabilityStatus::Pending,
other => {
ReachabilityStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for ReachabilityStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ReachabilityStatus::from(s))
}
}
impl ReachabilityStatus {
pub fn as_str(&self) -> &str {
match self {
ReachabilityStatus::Done => "DONE",
ReachabilityStatus::Expired => "EXPIRED",
ReachabilityStatus::Pending => "PENDING",
ReachabilityStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["DONE", "EXPIRED", "PENDING"]
}
}
impl AsRef<str> for ReachabilityStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DomainTransferability {
#[doc(hidden)]
pub transferable: std::option::Option<crate::model::Transferable>,
}
impl DomainTransferability {
pub fn transferable(&self) -> std::option::Option<&crate::model::Transferable> {
self.transferable.as_ref()
}
}
pub mod domain_transferability {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) transferable: std::option::Option<crate::model::Transferable>,
}
impl Builder {
pub fn transferable(mut self, input: crate::model::Transferable) -> Self {
self.transferable = Some(input);
self
}
pub fn set_transferable(
mut self,
input: std::option::Option<crate::model::Transferable>,
) -> Self {
self.transferable = input;
self
}
pub fn build(self) -> crate::model::DomainTransferability {
crate::model::DomainTransferability {
transferable: self.transferable,
}
}
}
}
impl DomainTransferability {
pub fn builder() -> crate::model::domain_transferability::Builder {
crate::model::domain_transferability::Builder::default()
}
}
#[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 Transferable {
#[allow(missing_docs)] DomainInAnotherAccount,
#[allow(missing_docs)] DomainInOwnAccount,
#[allow(missing_docs)] DontKnow,
#[allow(missing_docs)] PremiumDomain,
#[allow(missing_docs)] Transferable,
#[allow(missing_docs)] Untransferable,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Transferable {
fn from(s: &str) -> Self {
match s {
"DOMAIN_IN_ANOTHER_ACCOUNT" => Transferable::DomainInAnotherAccount,
"DOMAIN_IN_OWN_ACCOUNT" => Transferable::DomainInOwnAccount,
"DONT_KNOW" => Transferable::DontKnow,
"PREMIUM_DOMAIN" => Transferable::PremiumDomain,
"TRANSFERABLE" => Transferable::Transferable,
"UNTRANSFERABLE" => Transferable::Untransferable,
other => Transferable::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Transferable {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Transferable::from(s))
}
}
impl Transferable {
pub fn as_str(&self) -> &str {
match self {
Transferable::DomainInAnotherAccount => "DOMAIN_IN_ANOTHER_ACCOUNT",
Transferable::DomainInOwnAccount => "DOMAIN_IN_OWN_ACCOUNT",
Transferable::DontKnow => "DONT_KNOW",
Transferable::PremiumDomain => "PREMIUM_DOMAIN",
Transferable::Transferable => "TRANSFERABLE",
Transferable::Untransferable => "UNTRANSFERABLE",
Transferable::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"DOMAIN_IN_ANOTHER_ACCOUNT",
"DOMAIN_IN_OWN_ACCOUNT",
"DONT_KNOW",
"PREMIUM_DOMAIN",
"TRANSFERABLE",
"UNTRANSFERABLE",
]
}
}
impl AsRef<str> for Transferable {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[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 DomainAvailability {
#[allow(missing_docs)] Available,
#[allow(missing_docs)] AvailablePreorder,
#[allow(missing_docs)] AvailableReserved,
#[allow(missing_docs)] DontKnow,
#[allow(missing_docs)] Reserved,
#[allow(missing_docs)] Unavailable,
#[allow(missing_docs)] UnavailablePremium,
#[allow(missing_docs)] UnavailableRestricted,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for DomainAvailability {
fn from(s: &str) -> Self {
match s {
"AVAILABLE" => DomainAvailability::Available,
"AVAILABLE_PREORDER" => DomainAvailability::AvailablePreorder,
"AVAILABLE_RESERVED" => DomainAvailability::AvailableReserved,
"DONT_KNOW" => DomainAvailability::DontKnow,
"RESERVED" => DomainAvailability::Reserved,
"UNAVAILABLE" => DomainAvailability::Unavailable,
"UNAVAILABLE_PREMIUM" => DomainAvailability::UnavailablePremium,
"UNAVAILABLE_RESTRICTED" => DomainAvailability::UnavailableRestricted,
other => {
DomainAvailability::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for DomainAvailability {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DomainAvailability::from(s))
}
}
impl DomainAvailability {
pub fn as_str(&self) -> &str {
match self {
DomainAvailability::Available => "AVAILABLE",
DomainAvailability::AvailablePreorder => "AVAILABLE_PREORDER",
DomainAvailability::AvailableReserved => "AVAILABLE_RESERVED",
DomainAvailability::DontKnow => "DONT_KNOW",
DomainAvailability::Reserved => "RESERVED",
DomainAvailability::Unavailable => "UNAVAILABLE",
DomainAvailability::UnavailablePremium => "UNAVAILABLE_PREMIUM",
DomainAvailability::UnavailableRestricted => "UNAVAILABLE_RESTRICTED",
DomainAvailability::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"AVAILABLE",
"AVAILABLE_PREORDER",
"AVAILABLE_RESERVED",
"DONT_KNOW",
"RESERVED",
"UNAVAILABLE",
"UNAVAILABLE_PREMIUM",
"UNAVAILABLE_RESTRICTED",
]
}
}
impl AsRef<str> for DomainAvailability {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DnssecSigningAttributes {
#[doc(hidden)]
pub algorithm: std::option::Option<i32>,
#[doc(hidden)]
pub flags: std::option::Option<i32>,
#[doc(hidden)]
pub public_key: std::option::Option<std::string::String>,
}
impl DnssecSigningAttributes {
pub fn algorithm(&self) -> std::option::Option<i32> {
self.algorithm
}
pub fn flags(&self) -> std::option::Option<i32> {
self.flags
}
pub fn public_key(&self) -> std::option::Option<&str> {
self.public_key.as_deref()
}
}
pub mod dnssec_signing_attributes {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) algorithm: std::option::Option<i32>,
pub(crate) flags: std::option::Option<i32>,
pub(crate) public_key: std::option::Option<std::string::String>,
}
impl Builder {
pub fn algorithm(mut self, input: i32) -> Self {
self.algorithm = Some(input);
self
}
pub fn set_algorithm(mut self, input: std::option::Option<i32>) -> Self {
self.algorithm = input;
self
}
pub fn flags(mut self, input: i32) -> Self {
self.flags = Some(input);
self
}
pub fn set_flags(mut self, input: std::option::Option<i32>) -> Self {
self.flags = input;
self
}
pub fn public_key(mut self, input: impl Into<std::string::String>) -> Self {
self.public_key = Some(input.into());
self
}
pub fn set_public_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.public_key = input;
self
}
pub fn build(self) -> crate::model::DnssecSigningAttributes {
crate::model::DnssecSigningAttributes {
algorithm: self.algorithm,
flags: self.flags,
public_key: self.public_key,
}
}
}
}
impl DnssecSigningAttributes {
pub fn builder() -> crate::model::dnssec_signing_attributes::Builder {
crate::model::dnssec_signing_attributes::Builder::default()
}
}