pub struct DiagnosticsCatalogEntry {
pub key: String,
pub code: String,
pub title: String,
pub message_template: Option<String>,
pub default_severity: String,
pub fix_suggestion: String,
pub description: String,
pub tags: Vec<String>,
pub examples: Vec<String>,
}Expand description
A single diagnostics catalog entry.
Fields§
§key: StringStable enum-like key (for example EmptyImageUrl).
code: StringStable external code id (for example MD401).
title: StringHuman-readable short title.
message_template: Option<String>Optional parameterized message template.
default_severity: StringDefault severity string (Error, Warning, Info, Hint).
fix_suggestion: StringSuggested remediation text.
description: StringRich explanation/description.
Free-form entry tags.
examples: Vec<String>Example snippets associated with this diagnostic.
Trait Implementations§
Source§impl Clone for DiagnosticsCatalogEntry
impl Clone for DiagnosticsCatalogEntry
Source§fn clone(&self) -> DiagnosticsCatalogEntry
fn clone(&self) -> DiagnosticsCatalogEntry
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 moreSource§impl Debug for DiagnosticsCatalogEntry
impl Debug for DiagnosticsCatalogEntry
Source§impl<'de> Deserialize<'de> for DiagnosticsCatalogEntry
impl<'de> Deserialize<'de> for DiagnosticsCatalogEntry
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
Auto Trait Implementations§
impl Freeze for DiagnosticsCatalogEntry
impl RefUnwindSafe for DiagnosticsCatalogEntry
impl Send for DiagnosticsCatalogEntry
impl Sync for DiagnosticsCatalogEntry
impl Unpin for DiagnosticsCatalogEntry
impl UnsafeUnpin for DiagnosticsCatalogEntry
impl UnwindSafe for DiagnosticsCatalogEntry
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