#[repr(i32)]pub enum VerificationStatus {
Unspecified = 0,
Unverified = 1,
Verified = 2,
}
Expand description
Indicates whether the channel has been verified or not. It is illegal
to specify this field in a
[CreateNotificationChannel
][google.monitoring.v3.NotificationChannelService.CreateNotificationChannel]
or an
[UpdateNotificationChannel
][google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel]
operation.
Variants§
Unspecified = 0
Sentinel value used to indicate that the state is unknown, omitted, or is not applicable (as in the case of channels that neither support nor require verification in order to function).
Unverified = 1
The channel has yet to be verified and requires verification to function. Note that this state also applies to the case where the verification process has been initiated by sending a verification code but where the verification code has not been submitted to complete the process.
Verified = 2
It has been proven that notifications can be received on this notification channel and that someone on the project has access to messages that are delivered to that channel.
Implementations§
source§impl VerificationStatus
impl VerificationStatus
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 VerificationStatus
impl Clone for VerificationStatus
source§fn clone(&self) -> VerificationStatus
fn clone(&self) -> VerificationStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VerificationStatus
impl Debug for VerificationStatus
source§impl Default for VerificationStatus
impl Default for VerificationStatus
source§fn default() -> VerificationStatus
fn default() -> VerificationStatus
source§impl From<VerificationStatus> for i32
impl From<VerificationStatus> for i32
source§fn from(value: VerificationStatus) -> i32
fn from(value: VerificationStatus) -> i32
source§impl Hash for VerificationStatus
impl Hash for VerificationStatus
source§impl Ord for VerificationStatus
impl Ord for VerificationStatus
source§fn cmp(&self, other: &VerificationStatus) -> Ordering
fn cmp(&self, other: &VerificationStatus) -> 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 VerificationStatus
impl PartialEq for VerificationStatus
source§fn eq(&self, other: &VerificationStatus) -> bool
fn eq(&self, other: &VerificationStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VerificationStatus
impl PartialOrd for VerificationStatus
source§fn partial_cmp(&self, other: &VerificationStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &VerificationStatus) -> 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 VerificationStatus
impl TryFrom<i32> for VerificationStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<VerificationStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<VerificationStatus, UnknownEnumValue>
impl Copy for VerificationStatus
impl Eq for VerificationStatus
impl StructuralPartialEq for VerificationStatus
Auto Trait Implementations§
impl Freeze for VerificationStatus
impl RefUnwindSafe for VerificationStatus
impl Send for VerificationStatus
impl Sync for VerificationStatus
impl Unpin for VerificationStatus
impl UnwindSafe for VerificationStatus
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