Struct cargo_metadata::diagnostic::Diagnostic [−][src]
A diagnostic message generated by rustc
Fields
message: String
The error message of this diagnostic.
code: Option<DiagnosticCode>
The associated error code for this diagnostic
level: DiagnosticLevel
“error: internal compiler error”, “error”, “warning”, “note”, “help”
spans: Vec<DiagnosticSpan>
A list of source code spans this diagnostic is associated with.
children: Vec<Diagnostic>
Associated diagnostic messages.
rendered: Option<String>
The message as rustc would render it
Trait Implementations
impl Clone for Diagnostic
[src][+]
impl Debug for Diagnostic
[src][+]
impl<'de> Deserialize<'de> for Diagnostic
[src][+]
impl Display for Diagnostic
[src][+]
impl Eq for Diagnostic
[src]
impl Hash for Diagnostic
[src][+]
impl PartialEq<Diagnostic> for Diagnostic
[src][+]
impl Serialize for Diagnostic
[src][+]
impl StructuralEq for Diagnostic
[src]
impl StructuralPartialEq for Diagnostic
[src]
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,