pub struct Project {
pub path: PathBuf,
pub relative: String,
pub adapters: Vec<Box<dyn PackageManager>>,
}Expand description
A directory inside a repository that at least one package manager owns.
Fields§
§path: PathBufAbsolute path to the project directory.
relative: StringPath relative to the repository root, /-separated. "." for the root itself.
adapters: Vec<Box<dyn PackageManager>>Adapters that apply here. More than one is normal — cargo and npm in the same
directory own target and node_modules respectively.
Auto Trait Implementations§
impl !RefUnwindSafe for Project
impl !UnwindSafe for Project
impl Freeze for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more