pub struct GlobalCache {
pub name: String,
pub id: &'static str,
pub icon: &'static str,
pub path: PathBuf,
pub size: u64,
pub file_count: u64,
pub last_modified: Option<SystemTime>,
pub clean_command: Option<&'static str>,
pub description: &'static str,
}Expand description
A global developer cache location
Fields§
§name: StringHuman-readable name
id: &'static strShort identifier
icon: &'static strIcon/emoji for display
path: PathBufFull path to the cache directory
size: u64Size in bytes
file_count: u64Number of files
last_modified: Option<SystemTime>Last modification time
clean_command: Option<&'static str>Official clean command (if available)
description: &'static strDescription of what this cache contains
Implementations§
Trait Implementations§
Source§impl Clone for GlobalCache
impl Clone for GlobalCache
Source§fn clone(&self) -> GlobalCache
fn clone(&self) -> GlobalCache
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 GlobalCache
impl Debug for GlobalCache
Source§impl Deserialize<'static> for GlobalCache
impl Deserialize<'static> for GlobalCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalCache
impl RefUnwindSafe for GlobalCache
impl Send for GlobalCache
impl Sync for GlobalCache
impl Unpin for GlobalCache
impl UnwindSafe for GlobalCache
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