#[repr(i32)]pub enum SeverityView {
Unspecified = 0,
Info = 1,
Warning = 2,
}Expand description
Whether this is worth interrupting someone for.
The one thing that decides it: a warning raises an OS notification, info only lands in the alerts list. Both are always recorded, so the distinction costs nothing but noise.
Variants§
Implementations§
Source§impl SeverityView
impl SeverityView
Source§impl SeverityView
impl SeverityView
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 SeverityView
impl Clone for SeverityView
impl Copy for SeverityView
Source§impl Debug for SeverityView
impl Debug for SeverityView
Source§impl Default for SeverityView
impl Default for SeverityView
Source§fn default() -> SeverityView
fn default() -> SeverityView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SeverityView
impl<'de> Deserialize<'de> for SeverityView
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
impl Eq for SeverityView
Source§impl From<SeverityView> for i32
impl From<SeverityView> for i32
Source§fn from(value: SeverityView) -> i32
fn from(value: SeverityView) -> i32
Converts to this type from the input type.
Source§impl Hash for SeverityView
impl Hash for SeverityView
Source§impl Ord for SeverityView
impl Ord for SeverityView
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SeverityView
impl PartialEq for SeverityView
Source§impl PartialOrd for SeverityView
impl PartialOrd for SeverityView
Source§impl Serialize for SeverityView
impl Serialize for SeverityView
impl StructuralPartialEq for SeverityView
Source§impl TryFrom<i32> for SeverityView
impl TryFrom<i32> for SeverityView
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SeverityView, UnknownEnumValue>
fn try_from(value: i32) -> Result<SeverityView, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SeverityView
impl RefUnwindSafe for SeverityView
impl Send for SeverityView
impl Sync for SeverityView
impl Unpin for SeverityView
impl UnsafeUnpin for SeverityView
impl UnwindSafe for SeverityView
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