Enum ara_reporting::issue::IssueSeverity
source · pub enum IssueSeverity {
Note,
Help,
Warning,
Error,
Bug,
}
Variants§
Trait Implementations§
source§impl Clone for IssueSeverity
impl Clone for IssueSeverity
source§fn clone(&self) -> IssueSeverity
fn clone(&self) -> IssueSeverity
Returns a copy 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 IssueSeverity
impl Debug for IssueSeverity
source§impl<'de> Deserialize<'de> for IssueSeverity
impl<'de> Deserialize<'de> for IssueSeverity
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 Display for IssueSeverity
impl Display for IssueSeverity
Display the issue kind as a string.
Example:
use ara_reporting::issue::IssueSeverity;
assert_eq!(IssueSeverity::Error.to_string(), "error");
assert_eq!(IssueSeverity::Warning.to_string(), "warning");
assert_eq!(IssueSeverity::Help.to_string(), "help");
assert_eq!(IssueSeverity::Note.to_string(), "note");
assert_eq!(IssueSeverity::Bug.to_string(), "bug");
source§impl Hash for IssueSeverity
impl Hash for IssueSeverity
source§impl JsonSchema for IssueSeverity
impl JsonSchema for IssueSeverity
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for IssueSeverity
impl Ord for IssueSeverity
source§fn cmp(&self, other: &IssueSeverity) -> Ordering
fn cmp(&self, other: &IssueSeverity) -> Ordering
1.21.0 · 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
source§impl PartialEq<IssueSeverity> for IssueSeverity
impl PartialEq<IssueSeverity> for IssueSeverity
source§fn eq(&self, other: &IssueSeverity) -> bool
fn eq(&self, other: &IssueSeverity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<IssueSeverity> for IssueSeverity
impl PartialOrd<IssueSeverity> for IssueSeverity
source§fn partial_cmp(&self, other: &IssueSeverity) -> Option<Ordering>
fn partial_cmp(&self, other: &IssueSeverity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more