pub struct CatalogEntry {
pub variant: &'static str,
pub code: &'static str,
pub severity: &'static str,
pub headline: String,
pub explanation: String,
pub quickfix: Option<&'static str>,
pub docs: Option<String>,
}Expand description
One rendered sample per ParseErrorKind variant — the source of the
generated error catalog and largo explain <code>.
Fields§
§variant: &'static strThe enum variant name, e.g. "UnexpectedToken".
code: &'static str§severity: &'static str§headline: String§explanation: String§quickfix: Option<&'static str>§docs: Option<String>Trait Implementations§
Source§impl Clone for CatalogEntry
impl Clone for CatalogEntry
Source§fn clone(&self) -> CatalogEntry
fn clone(&self) -> CatalogEntry
Returns a duplicate 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 CatalogEntry
impl Debug for CatalogEntry
Source§impl PartialEq for CatalogEntry
impl PartialEq for CatalogEntry
impl StructuralPartialEq for CatalogEntry
Auto Trait Implementations§
impl Freeze for CatalogEntry
impl RefUnwindSafe for CatalogEntry
impl Send for CatalogEntry
impl Sync for CatalogEntry
impl Unpin for CatalogEntry
impl UnsafeUnpin for CatalogEntry
impl UnwindSafe for CatalogEntry
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