#[repr(i32)]pub enum NotificationCategory {
Unspecified = 0,
All = 2,
Suspension = 3,
Security = 5,
Technical = 6,
Billing = 7,
Legal = 8,
ProductUpdates = 9,
TechnicalIncidents = 10,
}
Expand description
The notification categories that an essential contact can be subscribed to. Each notification will be categorized by the sender into one of the following categories. All contacts that are subscribed to that category will receive the notification.
Variants§
Unspecified = 0
Notification category is unrecognized or unspecified.
All = 2
All notifications related to the resource, including notifications pertaining to categories added in the future.
Suspension = 3
Notifications related to imminent account suspension.
Security = 5
Notifications related to security/privacy incidents, notifications, and vulnerabilities.
Technical = 6
Notifications related to technical events and issues such as outages, errors, or bugs.
Billing = 7
Notifications related to billing and payments notifications, price updates, errors, or credits.
Legal = 8
Notifications related to enforcement actions, regulatory compliance, or government notices.
ProductUpdates = 9
Notifications related to new versions, product terms updates, or deprecations.
TechnicalIncidents = 10
Child category of TECHNICAL. If assigned, technical incident notifications will go to these contacts instead of TECHNICAL.
Implementations§
source§impl NotificationCategory
impl NotificationCategory
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of NotificationCategory
.
sourcepub fn from_i32(value: i32) -> Option<NotificationCategory>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<NotificationCategory>
Converts an i32
to a NotificationCategory
, or None
if value
is not a valid variant.
source§impl NotificationCategory
impl NotificationCategory
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 NotificationCategory
impl Clone for NotificationCategory
source§fn clone(&self) -> NotificationCategory
fn clone(&self) -> NotificationCategory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotificationCategory
impl Debug for NotificationCategory
source§impl Default for NotificationCategory
impl Default for NotificationCategory
source§fn default() -> NotificationCategory
fn default() -> NotificationCategory
source§impl From<NotificationCategory> for i32
impl From<NotificationCategory> for i32
source§fn from(value: NotificationCategory) -> i32
fn from(value: NotificationCategory) -> i32
source§impl Hash for NotificationCategory
impl Hash for NotificationCategory
source§impl Ord for NotificationCategory
impl Ord for NotificationCategory
source§fn cmp(&self, other: &NotificationCategory) -> Ordering
fn cmp(&self, other: &NotificationCategory) -> 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 NotificationCategory
impl PartialEq for NotificationCategory
source§fn eq(&self, other: &NotificationCategory) -> bool
fn eq(&self, other: &NotificationCategory) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NotificationCategory
impl PartialOrd for NotificationCategory
source§fn partial_cmp(&self, other: &NotificationCategory) -> Option<Ordering>
fn partial_cmp(&self, other: &NotificationCategory) -> 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 NotificationCategory
impl TryFrom<i32> for NotificationCategory
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<NotificationCategory, UnknownEnumValue>
fn try_from(value: i32) -> Result<NotificationCategory, UnknownEnumValue>
impl Copy for NotificationCategory
impl Eq for NotificationCategory
impl StructuralPartialEq for NotificationCategory
Auto Trait Implementations§
impl Freeze for NotificationCategory
impl RefUnwindSafe for NotificationCategory
impl Send for NotificationCategory
impl Sync for NotificationCategory
impl Unpin for NotificationCategory
impl UnwindSafe for NotificationCategory
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