[][src]Struct mmrbi::cargo::metadata::Metadata

#[non_exhaustive]pub struct Metadata<PackageMetadata = Table, WorkspaceMetadata = Table> {
    pub packages: Packages<PackageMetadata>,
    pub workspace: Workspace<WorkspaceMetadata>,
    pub diagnostics: Vec<Diagnostic>,
}

Parsed [workspace] and [package]s

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
packages: Packages<PackageMetadata>workspace: Workspace<WorkspaceMetadata>diagnostics: Vec<Diagnostic>

Implementations

impl<PM: Default + DeserializeOwned, WM: Default + DeserializeOwned> Metadata<PM, WM>[src]

pub fn from_current_dir() -> Result<Self>[src]

pub fn from_dir(dir: impl AsRef<Path> + Into<PathBuf>) -> Result<Self>[src]

pub fn from_file_workspace(
    path: impl AsRef<Path> + Into<PathBuf>,
    toml: Workspace<WM>
) -> Self
[src]

Trait Implementations

impl<PackageMetadata: Debug, WorkspaceMetadata: Debug> Debug for Metadata<PackageMetadata, WorkspaceMetadata>[src]

impl<PackageMetadata: Default, WorkspaceMetadata: Default> Default for Metadata<PackageMetadata, WorkspaceMetadata>[src]

Auto Trait Implementations

impl<PackageMetadata = Map<String, Value>, WorkspaceMetadata = Map<String, Value>> !RefUnwindSafe for Metadata<PackageMetadata, WorkspaceMetadata>

impl<PackageMetadata, WorkspaceMetadata> Send for Metadata<PackageMetadata, WorkspaceMetadata> where
    PackageMetadata: Send,
    WorkspaceMetadata: Send

impl<PackageMetadata, WorkspaceMetadata> Sync for Metadata<PackageMetadata, WorkspaceMetadata> where
    PackageMetadata: Sync,
    WorkspaceMetadata: Sync

impl<PackageMetadata, WorkspaceMetadata> Unpin for Metadata<PackageMetadata, WorkspaceMetadata> where
    PackageMetadata: Unpin,
    WorkspaceMetadata: Unpin

impl<PackageMetadata = Map<String, Value>, WorkspaceMetadata = Map<String, Value>> !UnwindSafe for Metadata<PackageMetadata, WorkspaceMetadata>

Blanket Implementations

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

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

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

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

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

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.