pub struct PackageExplanation {
pub name: String,
pub version: String,
pub source: SourceProvenance,
pub paths: Vec<Vec<ExplainStep>>,
pub is_selected_root: bool,
}Expand description
Explain why a package is in the resolved graph, who pulled it in, and which dependency edge introduced it.
Fields§
§name: String§version: String§source: SourceProvenance§paths: Vec<Vec<ExplainStep>>Every minimal path from a selected root to this package,
sorted by (length, joined name sequence) for stable
output. Each element of the inner vec is one
(name, version, edge_kind) step; the first element is a
selected root and the last is the queried package.
is_selected_root: boolWhether this package is itself a selected root.
Trait Implementations§
Source§impl Clone for PackageExplanation
impl Clone for PackageExplanation
Source§fn clone(&self) -> PackageExplanation
fn clone(&self) -> PackageExplanation
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 PackageExplanation
impl Debug for PackageExplanation
Auto Trait Implementations§
impl Freeze for PackageExplanation
impl RefUnwindSafe for PackageExplanation
impl Send for PackageExplanation
impl Sync for PackageExplanation
impl Unpin for PackageExplanation
impl UnsafeUnpin for PackageExplanation
impl UnwindSafe for PackageExplanation
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