Struct google_api_proto::google::cloud::domains::v1alpha2::RegisterParameters
source · pub struct RegisterParameters {
pub domain_name: String,
pub availability: i32,
pub supported_privacy: Vec<i32>,
pub domain_notices: Vec<i32>,
pub yearly_price: Option<Money>,
}
Expand description
Parameters required to register a new domain.
Fields§
§domain_name: String
The domain name. Unicode domain names are expressed in Punycode format.
availability: i32
Indicates whether the domain is available for registration. This value is
accurate when obtained by calling RetrieveRegisterParameters
, but is
approximate when obtained by calling SearchDomains
.
supported_privacy: Vec<i32>
Contact privacy options that the domain supports.
domain_notices: Vec<i32>
Notices about special properties of the domain.
yearly_price: Option<Money>
Price to register or renew the domain for one year.
Implementations§
source§impl RegisterParameters
impl RegisterParameters
sourcepub fn availability(&self) -> Availability
pub fn availability(&self) -> Availability
Returns the enum value of availability
, or the default if the field is set to an invalid enum value.
sourcepub fn set_availability(&mut self, value: Availability)
pub fn set_availability(&mut self, value: Availability)
Sets availability
to the provided enum value.
sourcepub fn supported_privacy(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ContactPrivacy>>
pub fn supported_privacy( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ContactPrivacy>>
Returns an iterator which yields the valid enum values contained in supported_privacy
.
sourcepub fn push_supported_privacy(&mut self, value: ContactPrivacy)
pub fn push_supported_privacy(&mut self, value: ContactPrivacy)
Appends the provided enum value to supported_privacy
.
sourcepub fn domain_notices(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DomainNotice>>
pub fn domain_notices( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DomainNotice>>
Returns an iterator which yields the valid enum values contained in domain_notices
.
sourcepub fn push_domain_notices(&mut self, value: DomainNotice)
pub fn push_domain_notices(&mut self, value: DomainNotice)
Appends the provided enum value to domain_notices
.
Trait Implementations§
source§impl Clone for RegisterParameters
impl Clone for RegisterParameters
source§fn clone(&self) -> RegisterParameters
fn clone(&self) -> RegisterParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegisterParameters
impl Debug for RegisterParameters
source§impl Default for RegisterParameters
impl Default for RegisterParameters
source§impl Message for RegisterParameters
impl Message for RegisterParameters
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RegisterParameters
impl PartialEq for RegisterParameters
source§fn eq(&self, other: &RegisterParameters) -> bool
fn eq(&self, other: &RegisterParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegisterParameters
Auto Trait Implementations§
impl Freeze for RegisterParameters
impl RefUnwindSafe for RegisterParameters
impl Send for RegisterParameters
impl Sync for RegisterParameters
impl Unpin for RegisterParameters
impl UnwindSafe for RegisterParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request