pub struct InstallNode {Show 13 fields
pub pkg: Package,
pub version: String,
pub revision: String,
pub sub_package: Option<String>,
pub repo_type: String,
pub description: String,
pub reason: InstallReason,
pub source: String,
pub registry_handle: String,
pub chosen_options: Vec<String>,
pub chosen_optionals: Vec<String>,
pub dependencies: Vec<String>,
pub git_sha: Option<String>,
}Expand description
Represents a single package node within the resolved dependency graph.
This node encapsulates everything needed to install the package, including:
- The fully parsed package metadata.
- The exact resolved version and sub-package selection.
- The reason it was included (Direct request vs. Dependency).
- The specific options and optionals chosen by the user/resolver.
Fields§
§pkg: PackageThe core metadata definition for the package.
version: StringThe exact resolved SemVer version.
revision: StringThe package revision number (used for packaging updates).
sub_package: Option<String>The selected sub-package, if applicable (e.g. Some("docs")).
repo_type: StringThe tier of the repository this package belongs to (e.g. “official”, “community”).
description: StringA short description of the package.
reason: InstallReasonWhy this package is being installed (e.g. Direct request vs Dependency).
source: StringThe original source string used to request this package.
registry_handle: StringThe handle of the registry this package was resolved from.
chosen_options: Vec<String>The names of explicit dependency options chosen by the user.
chosen_optionals: Vec<String>The names of optional dependencies chosen by the user.
dependencies: Vec<String>The final list of runtime dependency source strings required by this node.
git_sha: Option<String>The Git commit SHA of the repository when this package was resolved (used for lockfiles).
Trait Implementations§
Source§impl Clone for InstallNode
impl Clone for InstallNode
Source§fn clone(&self) -> InstallNode
fn clone(&self) -> InstallNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstallNode
impl Debug for InstallNode
Source§impl<'de> Deserialize<'de> for InstallNode
impl<'de> Deserialize<'de> for InstallNode
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>,
Auto Trait Implementations§
impl Freeze for InstallNode
impl RefUnwindSafe for InstallNode
impl Send for InstallNode
impl Sync for InstallNode
impl Unpin for InstallNode
impl UnsafeUnpin for InstallNode
impl UnwindSafe for InstallNode
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more