pub enum ObjectBundle {
SinglePack {
pack_hash: PackHash,
size_bytes: u64,
},
ChunkedPack {
manifest_hash: ManifestHash,
total_size: u64,
chunk_count: u32,
},
}Expand description
One stored bundle of git objects.
Variants§
SinglePack
A single packfile uploaded as one immutable contract.
Fields
ChunkedPack
A chunked pack split across multiple immutable contracts. Phase 1.0 helpers do not consume these; the variant is reserved so that adding support later does not require a contract key migration.
Implementations§
Source§impl ObjectBundle
impl ObjectBundle
Sourcepub fn id(&self) -> ObjectBundleId
pub fn id(&self) -> ObjectBundleId
Compute the deterministic ObjectBundleId for this bundle.
Defined as BLAKE3-32(canonical-CBOR(bundle)). The exact byte format
of the canonical encoding lives in freenet_git_encoding::canonical
and is part of the wire-format pin.
Trait Implementations§
Source§impl Clone for ObjectBundle
impl Clone for ObjectBundle
Source§fn clone(&self) -> ObjectBundle
fn clone(&self) -> ObjectBundle
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 ObjectBundle
impl Debug for ObjectBundle
Source§impl<'de> Deserialize<'de> for ObjectBundle
impl<'de> Deserialize<'de> for ObjectBundle
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 ObjectBundle
impl PartialEq for ObjectBundle
Source§fn eq(&self, other: &ObjectBundle) -> bool
fn eq(&self, other: &ObjectBundle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObjectBundle
impl Serialize for ObjectBundle
impl Eq for ObjectBundle
impl StructuralPartialEq for ObjectBundle
Auto Trait Implementations§
impl Freeze for ObjectBundle
impl RefUnwindSafe for ObjectBundle
impl Send for ObjectBundle
impl Sync for ObjectBundle
impl Unpin for ObjectBundle
impl UnsafeUnpin for ObjectBundle
impl UnwindSafe for ObjectBundle
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