pub struct DependencyGraphEdge {
pub from: String,
pub to: String,
pub requested_name: String,
pub version_req: String,
}Expand description
What: Represent one directed dependency requirement between graph nodes.
Inputs:
- Parent and selected child package names, requested dependency name, and version requirement.
Output:
- Preserves dependency and virtual-provider provenance independently of rendering.
Details:
- Edges are sorted lexically by the resolver and can be rendered without triggering metadata lookup or changing the resolution result.
Fields§
§from: StringActual package that declares the dependency.
to: StringActual selected package, or the missing requested name when metadata is absent.
requested_name: StringDependency or virtual package name written by the parent.
version_req: StringVersion requirement written by the parent, if present.
Trait Implementations§
Source§impl Clone for DependencyGraphEdge
impl Clone for DependencyGraphEdge
Source§fn clone(&self) -> DependencyGraphEdge
fn clone(&self) -> DependencyGraphEdge
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 DependencyGraphEdge
impl Debug for DependencyGraphEdge
Source§impl<'de> Deserialize<'de> for DependencyGraphEdge
impl<'de> Deserialize<'de> for DependencyGraphEdge
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 DependencyGraphEdge
Source§impl PartialEq for DependencyGraphEdge
impl PartialEq for DependencyGraphEdge
Source§impl Serialize for DependencyGraphEdge
impl Serialize for DependencyGraphEdge
impl StructuralPartialEq for DependencyGraphEdge
Auto Trait Implementations§
impl Freeze for DependencyGraphEdge
impl RefUnwindSafe for DependencyGraphEdge
impl Send for DependencyGraphEdge
impl Sync for DependencyGraphEdge
impl Unpin for DependencyGraphEdge
impl UnsafeUnpin for DependencyGraphEdge
impl UnwindSafe for DependencyGraphEdge
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.