Struct guppy::CargoMetadata [−][src]
pub struct CargoMetadata(_);Expand description
Deserialized Cargo metadata.
Returned by a MetadataCommand or constructed from cargo metadata JSON output.
This is an alternative entry point for constructing a PackageGraph, to be used if the JSON
output of cargo metadata is already available. To construct a PackageGraph from an on-disk
Cargo workspace, use MetadataCommand.
This struct implements serde::Serialize and Deserialize.
Implementations
Deserializes this JSON blob into a CargoMetadata.
Serializes this metadata into the given writer.
Parses this metadata and builds a PackageGraph from it.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for CargoMetadata
impl Send for CargoMetadata
impl Sync for CargoMetadata
impl Unpin for CargoMetadata
impl UnwindSafe for CargoMetadata
Blanket Implementations
Mutably borrows from an owned value. Read more