pub struct DependencyGraphNode {
pub name: String,
pub pkgbase: Option<String>,
pub version: Option<String>,
pub provenance: DependencyProvenance,
pub status: DependencyGraphNodeStatus,
pub constraints: DependencyConstraintRange,
pub provides: Vec<String>,
pub conflicts: Vec<String>,
pub depth: usize,
}Expand description
What: Represent one deterministic dependency graph node.
Inputs:
- Verified metadata and merged requirements for one actual package.
Output:
- Stores stable node identity, source provenance, split-package base, and selected metadata.
Details:
nameis the actual selected package.provenance.requested_nameretains the virtual or direct dependency name that selected it.
Fields§
§name: StringStable actual package identity used by graph edges.
pkgbase: Option<String>Package-base name retained from .SRCINFO.
version: Option<String>Combined epoch:pkgver-pkgrel version, if metadata was parsed.
provenance: DependencyProvenanceVerified source and provider provenance.
status: DependencyGraphNodeStatusCurrent graph node state.
constraints: DependencyConstraintRangeIntersected requirements targeting this node.
provides: Vec<String>Virtual packages supplied by this node.
conflicts: Vec<String>Declared package or virtual conflicts for this node.
depth: usizeMinimum lexical traversal depth at which this node was encountered.
Trait Implementations§
Source§impl Clone for DependencyGraphNode
impl Clone for DependencyGraphNode
Source§fn clone(&self) -> DependencyGraphNode
fn clone(&self) -> DependencyGraphNode
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 DependencyGraphNode
impl Debug for DependencyGraphNode
Source§impl<'de> Deserialize<'de> for DependencyGraphNode
impl<'de> Deserialize<'de> for DependencyGraphNode
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 DependencyGraphNode
Source§impl PartialEq for DependencyGraphNode
impl PartialEq for DependencyGraphNode
Source§impl Serialize for DependencyGraphNode
impl Serialize for DependencyGraphNode
impl StructuralPartialEq for DependencyGraphNode
Auto Trait Implementations§
impl Freeze for DependencyGraphNode
impl RefUnwindSafe for DependencyGraphNode
impl Send for DependencyGraphNode
impl Sync for DependencyGraphNode
impl Unpin for DependencyGraphNode
impl UnsafeUnpin for DependencyGraphNode
impl UnwindSafe for DependencyGraphNode
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.