[][src]Struct cargo_metadata::Node

pub struct Node {
    pub id: PackageId,
    pub deps: Vec<NodeDep>,
    pub dependencies: Vec<PackageId>,
    pub features: Vec<String>,
    // some fields omitted

A node in a dependencies graph


id: PackageId

An opaque identifier for a package

deps: Vec<NodeDep>

Dependencies in a structured format.

deps handles renamed dependencies whereas dependencies does not.

dependencies: Vec<PackageId>

List of opaque identifiers for this node's dependencies. It doesn't support renamed dependencies. See deps.

features: Vec<String>

Features enabled on the crate

Trait Implementations

impl Clone for Node[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Node[src]

impl Serialize for Node[src]

impl<'de> Deserialize<'de> for Node[src]

Auto Trait Implementations

impl Unpin for Node

impl Send for Node

impl Sync for Node

impl RefUnwindSafe for Node

impl UnwindSafe for Node

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>,