Enum ariadne::ReportKind
source · pub enum ReportKind<'a> {
Error,
Warning,
Advice,
Custom(&'a str, Color),
}
Expand description
A type that defines the kind of report being produced.
Variants§
Error
The report is an error and indicates a critical problem that prevents the program performing the requested action.
Warning
The report is a warning and indicates a likely problem, but not to the extent that the requested action cannot be performed.
Advice
The report is advice to the user about a potential anti-pattern of other benign issues.
Custom(&'a str, Color)
The report is of a kind not built into Ariadne.
Trait Implementations§
source§impl<'a> Clone for ReportKind<'a>
impl<'a> Clone for ReportKind<'a>
source§fn clone(&self) -> ReportKind<'a>
fn clone(&self) -> ReportKind<'a>
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<'a> Debug for ReportKind<'a>
impl<'a> Debug for ReportKind<'a>
source§impl Display for ReportKind<'_>
impl Display for ReportKind<'_>
source§impl<'a> PartialEq for ReportKind<'a>
impl<'a> PartialEq for ReportKind<'a>
source§fn eq(&self, other: &ReportKind<'a>) -> bool
fn eq(&self, other: &ReportKind<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for ReportKind<'a>
impl<'a> Eq for ReportKind<'a>
impl<'a> StructuralPartialEq for ReportKind<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ReportKind<'a>
impl<'a> Send for ReportKind<'a>
impl<'a> Sync for ReportKind<'a>
impl<'a> Unpin for ReportKind<'a>
impl<'a> UnwindSafe for ReportKind<'a>
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