Enum google_api_proto::google::cloud::sql::v1beta4::SqlSuspensionReason
source · #[repr(i32)]pub enum SqlSuspensionReason {
Unspecified = 0,
BillingIssue = 2,
LegalIssue = 3,
OperationalIssue = 4,
KmsKeyIssue = 5,
}
Expand description
The suspension reason of the database instance if the state is SUSPENDED.
Variants§
Unspecified = 0
This is an unknown suspension reason.
BillingIssue = 2
The instance is suspended due to billing issues (for example:, GCP account issue)
LegalIssue = 3
The instance is suspended due to illegal content (for example:, child pornography, copyrighted material, etc.).
OperationalIssue = 4
The instance is causing operational issues (for example:, causing the database to crash).
KmsKeyIssue = 5
The KMS key used by the instance is either revoked or denied access to
Implementations§
source§impl SqlSuspensionReason
impl SqlSuspensionReason
sourcepub fn from_i32(value: i32) -> Option<SqlSuspensionReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SqlSuspensionReason>
Converts an i32
to a SqlSuspensionReason
, or None
if value
is not a valid variant.
source§impl SqlSuspensionReason
impl SqlSuspensionReason
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 SqlSuspensionReason
impl Clone for SqlSuspensionReason
source§fn clone(&self) -> SqlSuspensionReason
fn clone(&self) -> SqlSuspensionReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SqlSuspensionReason
impl Debug for SqlSuspensionReason
source§impl Default for SqlSuspensionReason
impl Default for SqlSuspensionReason
source§fn default() -> SqlSuspensionReason
fn default() -> SqlSuspensionReason
source§impl From<SqlSuspensionReason> for i32
impl From<SqlSuspensionReason> for i32
source§fn from(value: SqlSuspensionReason) -> i32
fn from(value: SqlSuspensionReason) -> i32
source§impl Hash for SqlSuspensionReason
impl Hash for SqlSuspensionReason
source§impl Ord for SqlSuspensionReason
impl Ord for SqlSuspensionReason
source§fn cmp(&self, other: &SqlSuspensionReason) -> Ordering
fn cmp(&self, other: &SqlSuspensionReason) -> 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 SqlSuspensionReason
impl PartialEq for SqlSuspensionReason
source§fn eq(&self, other: &SqlSuspensionReason) -> bool
fn eq(&self, other: &SqlSuspensionReason) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SqlSuspensionReason
impl PartialOrd for SqlSuspensionReason
source§fn partial_cmp(&self, other: &SqlSuspensionReason) -> Option<Ordering>
fn partial_cmp(&self, other: &SqlSuspensionReason) -> 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 SqlSuspensionReason
impl TryFrom<i32> for SqlSuspensionReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<SqlSuspensionReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<SqlSuspensionReason, UnknownEnumValue>
impl Copy for SqlSuspensionReason
impl Eq for SqlSuspensionReason
impl StructuralPartialEq for SqlSuspensionReason
Auto Trait Implementations§
impl Freeze for SqlSuspensionReason
impl RefUnwindSafe for SqlSuspensionReason
impl Send for SqlSuspensionReason
impl Sync for SqlSuspensionReason
impl Unpin for SqlSuspensionReason
impl UnwindSafe for SqlSuspensionReason
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