pub struct CargoAllowDiagnostic {
pub code: String,
pub category: String,
pub severity: CargoAllowDiagnosticSeverity,
pub path: Option<String>,
pub span: Option<CargoAllowErrorLocation>,
pub entry_id: Option<String>,
pub field: Option<String>,
pub message: String,
pub help: Option<String>,
pub causes: Vec<String>,
}Expand description
Structured validation or execution detail.
The fields are intentionally owned and optional so diagnostics can be produced by policy, federation, import, and command layers without making those layers depend on a parser-specific representation.
Fields§
§code: String§category: String§severity: CargoAllowDiagnosticSeverity§path: Option<String>§span: Option<CargoAllowErrorLocation>§entry_id: Option<String>§field: Option<String>§message: String§help: Option<String>§causes: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for CargoAllowDiagnostic
impl Clone for CargoAllowDiagnostic
Source§fn clone(&self) -> CargoAllowDiagnostic
fn clone(&self) -> CargoAllowDiagnostic
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 CargoAllowDiagnostic
impl Debug for CargoAllowDiagnostic
impl Eq for CargoAllowDiagnostic
Source§impl PartialEq for CargoAllowDiagnostic
impl PartialEq for CargoAllowDiagnostic
impl StructuralPartialEq for CargoAllowDiagnostic
Auto Trait Implementations§
impl Freeze for CargoAllowDiagnostic
impl RefUnwindSafe for CargoAllowDiagnostic
impl Send for CargoAllowDiagnostic
impl Sync for CargoAllowDiagnostic
impl Unpin for CargoAllowDiagnostic
impl UnsafeUnpin for CargoAllowDiagnostic
impl UnwindSafe for CargoAllowDiagnostic
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