pub struct CacheClearPayload {
pub removed: u64,
pub kind: &'static str,
pub cache_path: String,
pub cache_removed: bool,
pub journal_path: String,
pub journal_removed: bool,
}Expand description
data payload for cache clear JSON envelope.
Per the cache-management spec the only required field is
removed; the additional fields are additive enrichments mirroring
what the text path already exposes.
Fields§
§removed: u64Number of cache files removed (0–2: cache and/or journal).
kind: &'static strSelector echoed from --type (cache, journal, or all).
cache_path: StringResolved cache file path that was inspected for removal.
cache_removed: boolWhether the cache file was removed in this invocation.
journal_path: StringResolved journal file path that was inspected for removal.
journal_removed: boolWhether the journal file was removed in this invocation.
Trait Implementations§
Source§impl Debug for CacheClearPayload
impl Debug for CacheClearPayload
Auto Trait Implementations§
impl Freeze for CacheClearPayload
impl RefUnwindSafe for CacheClearPayload
impl Send for CacheClearPayload
impl Sync for CacheClearPayload
impl Unpin for CacheClearPayload
impl UnsafeUnpin for CacheClearPayload
impl UnwindSafe for CacheClearPayload
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