pub struct CachedFile {
pub name: String,
pub size: u64,
pub hash: String,
pub executable: bool,
}Fields§
§name: StringFilename relative to the cache entry directory
size: u64Size in bytes
hash: Stringblake3 hash of file content
executable: boolWhether the source file had the executable bit set at store time.
Folded into the local content-dedup hash so two entries differing only
by which file is executable can’t collide (kunobi-ninja/kache#324).
#[serde(default)] keeps old meta.json (no field) deserializable.
Trait Implementations§
Source§impl Clone for CachedFile
impl Clone for CachedFile
Source§fn clone(&self) -> CachedFile
fn clone(&self) -> CachedFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CachedFile
impl Debug for CachedFile
Source§impl<'de> Deserialize<'de> for CachedFile
impl<'de> Deserialize<'de> for CachedFile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CachedFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CachedFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CachedFile
impl PartialEq for CachedFile
Source§impl Serialize for CachedFile
impl Serialize for CachedFile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CachedFile
Auto Trait Implementations§
impl Freeze for CachedFile
impl RefUnwindSafe for CachedFile
impl Send for CachedFile
impl Sync for CachedFile
impl Unpin for CachedFile
impl UnsafeUnpin for CachedFile
impl UnwindSafe for CachedFile
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