pub struct Unit {
pub dir: String,
pub manager: Manager,
pub standalone: bool,
}Expand description
One installation unit: a directory holding a tracked lockfile, and the manager that reads it.
Fields§
§dir: StringRepo-relative, "" for the root.
manager: Manager§standalone: boolpnpm only: a lockfile with no pnpm-workspace.yaml beside it is a
standalone project, even inside a workspace (see audit::pnpm_args).
Trait Implementations§
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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