pub struct ScannedProject {
pub path: PathBuf,
pub kind: ProjectKind,
pub name: String,
pub last_modified: DateTime<Local>,
pub clean_targets: Vec<CleanTarget>,
pub total_cleanable_bytes: u64,
}Expand description
A discovered developer project on disk.
Fields§
§path: PathBufThe project root directory.
kind: ProjectKindThe detected project kind.
name: StringA human-friendly project name (usually the directory name).
last_modified: DateTime<Local>When the project was last modified (based on marker file).
clean_targets: Vec<CleanTarget>Directories that can be cleaned.
total_cleanable_bytes: u64Total reclaimable bytes across all clean targets.
Trait Implementations§
Source§impl Clone for ScannedProject
impl Clone for ScannedProject
Source§fn clone(&self) -> ScannedProject
fn clone(&self) -> ScannedProject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScannedProject
impl Debug for ScannedProject
Source§impl<'de> Deserialize<'de> for ScannedProject
impl<'de> Deserialize<'de> for ScannedProject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScannedProject
impl RefUnwindSafe for ScannedProject
impl Send for ScannedProject
impl Sync for ScannedProject
impl Unpin for ScannedProject
impl UnsafeUnpin for ScannedProject
impl UnwindSafe for ScannedProject
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<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