Enum google_api_proto::google::cloud::domains::v1::management_settings::RenewalMethod
source · #[repr(i32)]pub enum RenewalMethod {
Unspecified = 0,
AutomaticRenewal = 1,
ManualRenewal = 2,
}
Expand description
Defines how the Registration
is renewed.
Variants§
Unspecified = 0
The renewal method is undefined.
AutomaticRenewal = 1
The domain is automatically renewed each year .
To disable automatic renewals, delete the resource by calling
DeleteRegistration
or export it by calling ExportRegistration
.
ManualRenewal = 2
The domain must be explicitly renewed each year before its
expire_time
. This option is only available when the Registration
is in state EXPORTED
.
To manage the domain’s current billing and renewal settings, go to Google Domains.
Implementations§
source§impl RenewalMethod
impl RenewalMethod
source§impl RenewalMethod
impl RenewalMethod
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for RenewalMethod
impl Clone for RenewalMethod
source§fn clone(&self) -> RenewalMethod
fn clone(&self) -> RenewalMethod
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RenewalMethod
impl Debug for RenewalMethod
source§impl Default for RenewalMethod
impl Default for RenewalMethod
source§fn default() -> RenewalMethod
fn default() -> RenewalMethod
source§impl From<RenewalMethod> for i32
impl From<RenewalMethod> for i32
source§fn from(value: RenewalMethod) -> i32
fn from(value: RenewalMethod) -> i32
source§impl Hash for RenewalMethod
impl Hash for RenewalMethod
source§impl Ord for RenewalMethod
impl Ord for RenewalMethod
source§fn cmp(&self, other: &RenewalMethod) -> Ordering
fn cmp(&self, other: &RenewalMethod) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RenewalMethod
impl PartialEq for RenewalMethod
source§fn eq(&self, other: &RenewalMethod) -> bool
fn eq(&self, other: &RenewalMethod) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RenewalMethod
impl PartialOrd for RenewalMethod
source§fn partial_cmp(&self, other: &RenewalMethod) -> Option<Ordering>
fn partial_cmp(&self, other: &RenewalMethod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RenewalMethod
impl TryFrom<i32> for RenewalMethod
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<RenewalMethod, UnknownEnumValue>
fn try_from(value: i32) -> Result<RenewalMethod, UnknownEnumValue>
impl Copy for RenewalMethod
impl Eq for RenewalMethod
impl StructuralPartialEq for RenewalMethod
Auto Trait Implementations§
impl Freeze for RenewalMethod
impl RefUnwindSafe for RenewalMethod
impl Send for RenewalMethod
impl Sync for RenewalMethod
impl Unpin for RenewalMethod
impl UnwindSafe for RenewalMethod
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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