pub struct ExternalBlob {
pub path: PathBuf,
pub size: u64,
}Expand description
An external user-owned file a blob id resolves to, read back from a
local_blob_refs row. The blob’s plaintext lives at path (an absolute file
coven references but does not own); size is its registered plaintext length,
combined with the row’s signed content hash to validate the exact file. The namespace
stays on the row but is not part of the read shape, so it is not carried here.
Fields§
§path: PathBufAbsolute path to the external file coven reads but does not own.
size: u64The file’s plaintext length at registration. A read fails loud if the file’s current length differs (truncated, replaced) — validate-on-read.
Trait Implementations§
Source§impl Clone for ExternalBlob
impl Clone for ExternalBlob
Source§fn clone(&self) -> ExternalBlob
fn clone(&self) -> ExternalBlob
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 ExternalBlob
impl Debug for ExternalBlob
Source§impl PartialEq for ExternalBlob
impl PartialEq for ExternalBlob
impl Eq for ExternalBlob
impl StructuralPartialEq for ExternalBlob
Auto Trait Implementations§
impl Freeze for ExternalBlob
impl RefUnwindSafe for ExternalBlob
impl Send for ExternalBlob
impl Sync for ExternalBlob
impl Unpin for ExternalBlob
impl UnsafeUnpin for ExternalBlob
impl UnwindSafe for ExternalBlob
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.