[][src]Struct cargo_metadata::Metadata

pub struct Metadata {
    pub packages: Vec<Package>,
    pub workspace_members: Vec<PackageId>,
    pub resolve: Option<Resolve>,
    pub workspace_root: PathBuf,
    pub target_directory: PathBuf,
    // some fields omitted
}

Starting point for metadata returned by cargo metadata

Fields

packages: Vec<Package>

A list of all crates referenced by this crate (and the crate itself)

workspace_members: Vec<PackageId>

A list of all workspace members

resolve: Option<Resolve>

Dependencies graph

workspace_root: PathBuf

Workspace root

target_directory: PathBuf

Build directory

Trait Implementations

impl Clone for Metadata
[src]

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

Performs copy-assignment from source. Read more

impl Debug for Metadata
[src]

impl<'a> Index<&'a PackageId> for Metadata
[src]

type Output = Package

The returned type after indexing.

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

impl Serialize for Metadata
[src]

Auto Trait Implementations

impl Send for Metadata

impl Sync for Metadata

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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