Enum google_api_proto::google::cloud::channel::v1::entitlement::SuspensionReason
source · #[repr(i32)]pub enum SuspensionReason {
Unspecified = 0,
ResellerInitiated = 1,
TrialEnded = 2,
RenewalWithTypeCancel = 3,
PendingTosAcceptance = 4,
Other = 100,
}
Expand description
Suspension reason for an entitlement if [provisioning_state][google.cloud.channel.v1.Entitlement.provisioning_state] = SUSPENDED.
Variants§
Unspecified = 0
Not used.
ResellerInitiated = 1
Entitlement was manually suspended by the Reseller.
TrialEnded = 2
Trial ended.
RenewalWithTypeCancel = 3
Entitlement renewal was canceled.
PendingTosAcceptance = 4
Entitlement was automatically suspended on creation for pending ToS acceptance on customer.
Other = 100
Other reasons (internal reasons, abuse, etc.).
Implementations§
source§impl SuspensionReason
impl SuspensionReason
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 SuspensionReason
impl Clone for SuspensionReason
source§fn clone(&self) -> SuspensionReason
fn clone(&self) -> SuspensionReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SuspensionReason
impl Debug for SuspensionReason
source§impl Default for SuspensionReason
impl Default for SuspensionReason
source§fn default() -> SuspensionReason
fn default() -> SuspensionReason
Returns the “default value” for a type. Read more
source§impl From<SuspensionReason> for i32
impl From<SuspensionReason> for i32
source§fn from(value: SuspensionReason) -> i32
fn from(value: SuspensionReason) -> i32
Converts to this type from the input type.
source§impl Hash for SuspensionReason
impl Hash for SuspensionReason
source§impl Ord for SuspensionReason
impl Ord for SuspensionReason
source§fn cmp(&self, other: &SuspensionReason) -> Ordering
fn cmp(&self, other: &SuspensionReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SuspensionReason
impl PartialEq for SuspensionReason
source§fn eq(&self, other: &SuspensionReason) -> bool
fn eq(&self, other: &SuspensionReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SuspensionReason
impl PartialOrd for SuspensionReason
source§fn partial_cmp(&self, other: &SuspensionReason) -> Option<Ordering>
fn partial_cmp(&self, other: &SuspensionReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SuspensionReason
impl TryFrom<i32> for SuspensionReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<SuspensionReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<SuspensionReason, UnknownEnumValue>
Performs the conversion.
impl Copy for SuspensionReason
impl Eq for SuspensionReason
impl StructuralPartialEq for SuspensionReason
Auto Trait Implementations§
impl Freeze for SuspensionReason
impl RefUnwindSafe for SuspensionReason
impl Send for SuspensionReason
impl Sync for SuspensionReason
impl Unpin for SuspensionReason
impl UnwindSafe for SuspensionReason
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
Mutably borrows from an owned value. Read more
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T
in a tonic::Request