#[non_exhaustive]pub enum NotificationPriority {
Info,
Warn,
Emergency,
}Expand description
Severity ladder. Drives the SPA color, toast/dialog choice, and
whether the Client App grabs window focus on push arrival.
#[non_exhaustive] so a future SPEC can add severities (e.g.
Critical above Emergency) without a wire bump.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Info
Background-style toast. Routine maintenance reminders.
Warn
Yellow toast. Heads-up about upcoming changes.
Emergency
Red modal — grabs window focus, blocks until ack (SPEC §2.12.8: “緊急: ネットワーク機器メンテ”).
Trait Implementations§
Source§impl Clone for NotificationPriority
impl Clone for NotificationPriority
Source§fn clone(&self) -> NotificationPriority
fn clone(&self) -> NotificationPriority
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotificationPriority
impl Debug for NotificationPriority
Source§impl<'de> Deserialize<'de> for NotificationPriority
impl<'de> Deserialize<'de> for NotificationPriority
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for NotificationPriority
impl Hash for NotificationPriority
Source§impl JsonSchema for NotificationPriority
impl JsonSchema for NotificationPriority
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NotificationPriority
impl PartialEq for NotificationPriority
Source§fn eq(&self, other: &NotificationPriority) -> bool
fn eq(&self, other: &NotificationPriority) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NotificationPriority
impl Serialize for NotificationPriority
impl Copy for NotificationPriority
impl Eq for NotificationPriority
impl StructuralPartialEq for NotificationPriority
Auto Trait Implementations§
impl Freeze for NotificationPriority
impl RefUnwindSafe for NotificationPriority
impl Send for NotificationPriority
impl Sync for NotificationPriority
impl Unpin for NotificationPriority
impl UnsafeUnpin for NotificationPriority
impl UnwindSafe for NotificationPriority
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