Enum protos::sp_notify::NotificationType
source · pub enum NotificationType {
NOTIFICATION_TYPE_UNSET = 0,
NOTIFICATION_TYPE_SLACK = 1,
NOTIFICATION_TYPE_EMAIL = 2,
NOTIFICATION_TYPE_PAGERDUTY = 3,
}Variants§
NOTIFICATION_TYPE_UNSET = 0
NOTIFICATION_TYPE_SLACK = 1
NOTIFICATION_TYPE_EMAIL = 2
NOTIFICATION_TYPE_PAGERDUTY = 3
Trait Implementations§
source§impl Clone for NotificationType
impl Clone for NotificationType
source§fn clone(&self) -> NotificationType
fn clone(&self) -> NotificationType
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 NotificationType
impl Debug for NotificationType
source§impl Default for NotificationType
impl Default for NotificationType
source§impl Enum for NotificationType
impl Enum for NotificationType
source§const NAME: &'static str = "NotificationType"
const NAME: &'static str = "NotificationType"
Enum name as specified in
.proto file. Read moresource§fn from_i32(value: i32) -> Option<NotificationType>
fn from_i32(value: i32) -> Option<NotificationType>
Try to create an enum from
i32 value.
Return None if value is unknown.source§fn from_str(str: &str) -> Option<NotificationType>
fn from_str(str: &str) -> Option<NotificationType>
Try to create an enum from
&str value.
Return None if str is unknown.source§const VALUES: &'static [NotificationType] = _
const VALUES: &'static [NotificationType] = _
All enum values for enum type.
source§impl EnumFull for NotificationType
impl EnumFull for NotificationType
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for NotificationType
impl Hash for NotificationType
source§impl PartialEq for NotificationType
impl PartialEq for NotificationType
source§fn eq(&self, other: &NotificationType) -> bool
fn eq(&self, other: &NotificationType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for NotificationType
impl Eq for NotificationType
impl StructuralPartialEq for NotificationType
Auto Trait Implementations§
impl Freeze for NotificationType
impl RefUnwindSafe for NotificationType
impl Send for NotificationType
impl Sync for NotificationType
impl Unpin for NotificationType
impl UnwindSafe for NotificationType
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