pub struct DependencyGraphDiagnostic {
pub kind: DependencyGraphDiagnosticKind,
pub package: String,
pub related_package: Option<String>,
pub message: String,
}Expand description
What: Record one actionable non-fatal graph-resolution event.
Inputs:
- A diagnostic kind, affected package, optional related package, and message.
Output:
- Lets callers surface partial-resolution limitations without parsing log output.
Details:
- Entries are sorted deterministically by kind, package, related package, and message.
Fields§
§kind: DependencyGraphDiagnosticKindStable category for the event.
package: StringAffected package or requested dependency name.
Related package when the event concerns an edge, cycle, or conflict.
message: StringActionable detail suitable for caller display.
Trait Implementations§
Source§impl Clone for DependencyGraphDiagnostic
impl Clone for DependencyGraphDiagnostic
Source§fn clone(&self) -> DependencyGraphDiagnostic
fn clone(&self) -> DependencyGraphDiagnostic
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 DependencyGraphDiagnostic
impl Debug for DependencyGraphDiagnostic
Source§impl<'de> Deserialize<'de> for DependencyGraphDiagnostic
impl<'de> Deserialize<'de> for DependencyGraphDiagnostic
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
impl Eq for DependencyGraphDiagnostic
impl StructuralPartialEq for DependencyGraphDiagnostic
Auto Trait Implementations§
impl Freeze for DependencyGraphDiagnostic
impl RefUnwindSafe for DependencyGraphDiagnostic
impl Send for DependencyGraphDiagnostic
impl Sync for DependencyGraphDiagnostic
impl Unpin for DependencyGraphDiagnostic
impl UnsafeUnpin for DependencyGraphDiagnostic
impl UnwindSafe for DependencyGraphDiagnostic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.