Struct BlobRef
pub struct BlobRef {
pub raw_hash: ObjectId,
pub size_bytes: u64,
pub chunks: Vec<ChunkRef>,
}Expand description
How a tracked file is laid out in the store: the whole-file raw hash plus the ordered list of fixed-size chunks that reconstruct it.
Fields§
§raw_hash: ObjectIdHash of the complete file content (level-1 dedup key).
size_bytes: u64Total file size in bytes.
chunks: Vec<ChunkRef>Ordered chunks (level-2 dedup), each 256 KiB except possibly the last.
Trait Implementations§
§impl<'de> Deserialize<'de> for BlobRef
impl<'de> Deserialize<'de> for BlobRef
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlobRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlobRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for BlobRef
impl Serialize for BlobRef
§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 Eq for BlobRef
impl StructuralPartialEq for BlobRef
Auto Trait Implementations§
impl Freeze for BlobRef
impl RefUnwindSafe for BlobRef
impl Send for BlobRef
impl Sync for BlobRef
impl Unpin for BlobRef
impl UnsafeUnpin for BlobRef
impl UnwindSafe for BlobRef
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