pub struct Project {
pub project_type: ProjectType,
pub path: PathBuf,
}Expand description
Represents a detected development project
Fields§
§project_type: ProjectTypeThe type of project detected
path: PathBufThe root path of the project
Implementations§
Source§impl Project
impl Project
Sourcepub fn new(project_type: ProjectType, path: PathBuf) -> Self
pub fn new(project_type: ProjectType, path: PathBuf) -> Self
Creates a new Project instance
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Returns the display name of the project (usually the directory name)
Sourcepub fn calculate_artifact_size(&self, options: &ScanOptions) -> u64
pub fn calculate_artifact_size(&self, options: &ScanOptions) -> u64
Calculates the total size of artifact directories in bytes
Sourcepub fn last_modified(&self, options: &ScanOptions) -> Result<SystemTime, Error>
pub fn last_modified(&self, options: &ScanOptions) -> Result<SystemTime, Error>
Gets the last modified time of the project
Sourcepub fn clean(&self) -> Result<u64, CleanError>
pub fn clean(&self) -> Result<u64, CleanError>
Cleans (deletes) all artifact directories for this project
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe 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