#[non_exhaustive]pub struct Manifest {
pub packages: Vec<Package>,
}Available on crate feature
workspace only.Expand description
The manifest of a workspace.
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: Vec<Package>List of packages found.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn find_by_kind(
&self,
filter: WorkspaceFilter<'_>,
kind: FoundKind,
) -> Result<Vec<FoundPackage<'_>>>
pub fn find_by_kind( &self, filter: WorkspaceFilter<'_>, kind: FoundKind, ) -> Result<Vec<FoundPackage<'_>>>
Find all entrypoints of a specific kind.
Sourcepub fn find_all(
&self,
filter: WorkspaceFilter<'_>,
) -> Result<Vec<FoundPackage<'_>>>
pub fn find_all( &self, filter: WorkspaceFilter<'_>, ) -> Result<Vec<FoundPackage<'_>>>
Find every single entrypoint available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more