[][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 Serialize for Metadata[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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
[src]

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

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

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