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