pub enum ImportanceLevel {
Critical,
Important,
Normal,
Low,
Noise,
}Expand description
Importance level for a message.
Variants§
Critical
Score ≥ 0.8 — surface prominently.
Important
Score 0.5-0.8 — important.
Normal
Score 0.2-0.5 — normal inbox priority.
Low
Score 0.0-0.2 — low priority (newsletters, notifications).
Noise
Score < 0 — noise; safe to demote / archive.
Implementations§
Trait Implementations§
Source§impl Clone for ImportanceLevel
impl Clone for ImportanceLevel
Source§fn clone(&self) -> ImportanceLevel
fn clone(&self) -> ImportanceLevel
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 moreimpl Copy for ImportanceLevel
Source§impl Debug for ImportanceLevel
impl Debug for ImportanceLevel
impl Eq for ImportanceLevel
Source§impl PartialEq for ImportanceLevel
impl PartialEq for ImportanceLevel
Source§fn eq(&self, other: &ImportanceLevel) -> bool
fn eq(&self, other: &ImportanceLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportanceLevel
Auto Trait Implementations§
impl Freeze for ImportanceLevel
impl RefUnwindSafe for ImportanceLevel
impl Send for ImportanceLevel
impl Sync for ImportanceLevel
impl Unpin for ImportanceLevel
impl UnsafeUnpin for ImportanceLevel
impl UnwindSafe for ImportanceLevel
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