pub struct ErrorDiagnostic {
pub layer: DiagnosticLayer,
pub code: &'static str,
pub name: &'static str,
pub description: &'static str,
pub remediation: &'static str,
}Expand description
Structured diagnostic metadata for parser, policy, and transport errors.
Fields§
§layer: DiagnosticLayerLayer that produced the diagnostic.
code: &'static strStable fully-qualified diagnostic code.
name: &'static strStable short diagnostic name within the layer.
description: &'static strHuman-readable diagnostic description for operators.
remediation: &'static strHuman-readable remediation guidance.
Trait Implementations§
Source§impl Clone for ErrorDiagnostic
impl Clone for ErrorDiagnostic
Source§fn clone(&self) -> ErrorDiagnostic
fn clone(&self) -> ErrorDiagnostic
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 ErrorDiagnostic
impl Debug for ErrorDiagnostic
Source§impl PartialEq for ErrorDiagnostic
impl PartialEq for ErrorDiagnostic
impl Copy for ErrorDiagnostic
impl Eq for ErrorDiagnostic
impl StructuralPartialEq for ErrorDiagnostic
Auto Trait Implementations§
impl Freeze for ErrorDiagnostic
impl RefUnwindSafe for ErrorDiagnostic
impl Send for ErrorDiagnostic
impl Sync for ErrorDiagnostic
impl Unpin for ErrorDiagnostic
impl UnsafeUnpin for ErrorDiagnostic
impl UnwindSafe for ErrorDiagnostic
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