pub enum EventPriority {
Urgent,
Action,
Warning,
Info,
}Expand description
Notification priority. Matches TS’s four-value union verbatim so a
TS notificationRouting table could be ported later without a rename.
Variants§
Urgent
“Wake someone up.” Paged/SMS-class.
Action
“Needs human action soon.” Default for send-to-agent failures.
Warning
“Something’s off, check when you can.” Fallback for unknown reaction keys.
Info
“FYI.” Default for approved-and-green notifications.
Implementations§
Source§impl EventPriority
impl EventPriority
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Snake-case label matching the YAML wire form — used by the
notifier registry (Slice 3 Phase A) for tracing fields and
warn-once dedup keys so log rows stay consistent with config
file keys. Mirror of ReactionAction::as_str a few lines up;
derived Debug would give PascalCase, which reads weirdly
next to ci_failed / status_changed in the same row.
Trait Implementations§
Source§impl Clone for EventPriority
impl Clone for EventPriority
Source§fn clone(&self) -> EventPriority
fn clone(&self) -> EventPriority
Returns a duplicate 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 EventPriority
impl Debug for EventPriority
Source§impl<'de> Deserialize<'de> for EventPriority
impl<'de> Deserialize<'de> for EventPriority
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 EventPriority
impl Hash for EventPriority
Source§impl PartialEq for EventPriority
impl PartialEq for EventPriority
Source§impl Serialize for EventPriority
impl Serialize for EventPriority
impl Copy for EventPriority
impl Eq for EventPriority
impl StructuralPartialEq for EventPriority
Auto Trait Implementations§
impl Freeze for EventPriority
impl RefUnwindSafe for EventPriority
impl Send for EventPriority
impl Sync for EventPriority
impl Unpin for EventPriority
impl UnsafeUnpin for EventPriority
impl UnwindSafe for EventPriority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.