pub struct OutputBlob {
pub workspace_absolute_path: CanonicalPath,
pub content_hash: [u8; 32],
pub size: u64,
pub mode: u32,
}Expand description
One entry in the manifest’s output-blob list (CACHE-011).
Fields§
§workspace_absolute_path: CanonicalPathWorkspace-absolute path at which the blob’s content will be
materialised on restore (CACHE-019). Validated as a
CanonicalPath at deserialisation time, so a manifest
that smuggles a path-traversal segment (..) or a
bidirectional-control codepoint into this field fails to
parse and is treated as a cache miss
(CACHE-016/CACHE-022).
content_hash: [u8; 32]Content hash of the blob bytes under the manifest’s
declared hash_function, as 64 lowercase hex characters.
size: u64Size of the blob in bytes.
mode: u32Unix permission bits of the materialised file
(CACHE-013). Stored as a decimal integer in JSON; the
owner-write bit (0o200) is the only one Windows honours
at restore time, per the trait note.
Trait Implementations§
Source§impl Clone for OutputBlob
impl Clone for OutputBlob
Source§fn clone(&self) -> OutputBlob
fn clone(&self) -> OutputBlob
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 OutputBlob
impl Debug for OutputBlob
Source§impl<'de> Deserialize<'de> for OutputBlob
impl<'de> Deserialize<'de> for OutputBlob
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
Source§impl PartialEq for OutputBlob
impl PartialEq for OutputBlob
Source§fn eq(&self, other: &OutputBlob) -> bool
fn eq(&self, other: &OutputBlob) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OutputBlob
impl Serialize for OutputBlob
impl Eq for OutputBlob
impl StructuralPartialEq for OutputBlob
Auto Trait Implementations§
impl Freeze for OutputBlob
impl RefUnwindSafe for OutputBlob
impl Send for OutputBlob
impl Sync for OutputBlob
impl Unpin for OutputBlob
impl UnsafeUnpin for OutputBlob
impl UnwindSafe for OutputBlob
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