pub struct DiagnosticInfo {
pub code: &'static str,
pub severity: DiagnosticSeverity,
pub category: Option<ErrorCategory>,
pub summary: &'static str,
pub status: CodeStatus,
}Expand description
One entry in a crate’s diagnostic registry.
Fields§
§code: &'static str§severity: DiagnosticSeverity§category: Option<ErrorCategory>§summary: &'static str§status: CodeStatusImplementations§
Source§impl DiagnosticInfo
impl DiagnosticInfo
pub const fn new( code: &'static str, severity: DiagnosticSeverity, summary: &'static str, ) -> Self
pub const fn with_category(self, category: ErrorCategory) -> Self
pub const fn retired(self, since: &'static str) -> Self
pub fn namespace(&self) -> &'static str
pub fn stage(&self) -> Option<DiagnosticStage>
Trait Implementations§
Source§impl Clone for DiagnosticInfo
impl Clone for DiagnosticInfo
Source§fn clone(&self) -> DiagnosticInfo
fn clone(&self) -> DiagnosticInfo
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 DiagnosticInfo
Source§impl Debug for DiagnosticInfo
impl Debug for DiagnosticInfo
impl Eq for DiagnosticInfo
Source§impl PartialEq for DiagnosticInfo
impl PartialEq for DiagnosticInfo
Source§fn eq(&self, other: &DiagnosticInfo) -> bool
fn eq(&self, other: &DiagnosticInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiagnosticInfo
Auto Trait Implementations§
impl Freeze for DiagnosticInfo
impl RefUnwindSafe for DiagnosticInfo
impl Send for DiagnosticInfo
impl Sync for DiagnosticInfo
impl Unpin for DiagnosticInfo
impl UnsafeUnpin for DiagnosticInfo
impl UnwindSafe for DiagnosticInfo
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