#[non_exhaustive]pub struct WorkspacePackage {
pub name: String,
pub version: String,
pub manifest_path: PathBuf,
pub features: BTreeMap<String, Vec<String>>,
pub targets: Vec<WorkspaceTarget>,
}Expand description
One workspace member from offline cargo metadata.
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.name: StringPackage name.
version: StringPackage version.
manifest_path: PathBufPath to the member’s Cargo.toml.
features: BTreeMap<String, Vec<String>>Declared and implicit features on this member.
targets: Vec<WorkspaceTarget>Cargo targets declared or auto-discovered for this member.
Trait Implementations§
Source§impl Clone for WorkspacePackage
impl Clone for WorkspacePackage
Source§impl Debug for WorkspacePackage
impl Debug for WorkspacePackage
impl Eq for WorkspacePackage
Source§impl PartialEq for WorkspacePackage
impl PartialEq for WorkspacePackage
impl StructuralPartialEq for WorkspacePackage
Auto Trait Implementations§
impl Forget for WorkspacePackage
impl Freeze for WorkspacePackagewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Vec<String>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Vec<String>)>>: Freeze,
PhantomData<WorkspaceTarget>: Freeze,
impl Move for WorkspacePackage
impl RefUnwindSafe for WorkspacePackage
impl Send for WorkspacePackage
impl Sync for WorkspacePackage
impl Unpin for WorkspacePackage
impl UnsafeUnpin for WorkspacePackagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Vec<String>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Vec<String>)>>: UnsafeUnpin,
PhantomData<WorkspaceTarget>: UnsafeUnpin,
impl UnwindSafe for WorkspacePackage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.