Struct cargo_metadata::Metadata
source · pub struct Metadata {
pub packages: Vec<Package>,
pub workspace_members: Vec<WorkspaceMember>,
pub resolve: Option<Resolve>,
pub workspace_root: String,
pub target_directory: String,
/* private fields */
}
Expand description
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<WorkspaceMember>
A list of all workspace members
resolve: Option<Resolve>
Dependencies graph
workspace_root: String
Workspace root
target_directory: String
Build directory
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more