#[non_exhaustive]pub struct Metadata<PackageMetadata = Table, WorkspaceMetadata = Table> {
pub packages: Packages<PackageMetadata>,
pub workspace: Workspace<WorkspaceMetadata>,
pub diagnostics: Vec<Diagnostic>,
}
This is supported on crate features
serde
and toml
only.Expand description
Parsed [workspace]
and [package]
s
Fields (Non-exhaustive)
This struct is marked as 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
sourceimpl<PM: Default + DeserializeOwned, WM: Default + DeserializeOwned> Metadata<PM, WM>
impl<PM: Default + DeserializeOwned, WM: Default + DeserializeOwned> Metadata<PM, WM>
Trait Implementations
Auto Trait Implementations
impl<PackageMetadata, WorkspaceMetadata> RefUnwindSafe for Metadata<PackageMetadata, WorkspaceMetadata> where
PackageMetadata: RefUnwindSafe,
WorkspaceMetadata: RefUnwindSafe,
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, WorkspaceMetadata> UnwindSafe for Metadata<PackageMetadata, WorkspaceMetadata> where
PackageMetadata: UnwindSafe,
WorkspaceMetadata: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more