#[non_exhaustive]pub struct CodeInfo {
pub code: Code,
pub name: &'static str,
pub severity: Severity,
pub summary: &'static str,
pub deprecated: bool,
}Expand description
One registry entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: CodeThe code.
name: &'static strThe constant’s name in this module.
severity: SeverityThe severity diagnostics with this code are emitted at by default.
summary: &'static strOne-line meaning. Never changes once published.
deprecated: boolRetired: never emitted any more, but never removed or reused.
Trait Implementations§
impl Copy for CodeInfo
impl Eq for CodeInfo
impl StructuralPartialEq for CodeInfo
Auto Trait Implementations§
impl Freeze for CodeInfo
impl RefUnwindSafe for CodeInfo
impl Send for CodeInfo
impl Sync for CodeInfo
impl Unpin for CodeInfo
impl UnsafeUnpin for CodeInfo
impl UnwindSafe for CodeInfo
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