pub struct ManifestObject {
pub kind: ManifestObjectKind,
pub hash: ContentHash,
pub decoded_size: u64,
}Expand description
One immutable content object named by a manifest leaf.
Only logical facts appear here. Pack id, storage key, offset, encoded
length, encoded digest, ETag, audience, and current head are mutable
control-plane facts and are resolved after authorization — see
super::extent.
Fields§
§kind: ManifestObjectKind§hash: ContentHash§decoded_size: u64Implementations§
Source§impl ManifestObject
impl ManifestObject
pub fn new( kind: ManifestObjectKind, hash: ContentHash, decoded_size: u64, ) -> Self
pub fn key(&self) -> ManifestKey
Trait Implementations§
Source§impl Clone for ManifestObject
impl Clone for ManifestObject
Source§fn clone(&self) -> ManifestObject
fn clone(&self) -> ManifestObject
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 moreimpl Copy for ManifestObject
Source§impl Debug for ManifestObject
impl Debug for ManifestObject
impl Eq for ManifestObject
Source§impl Hash for ManifestObject
impl Hash for ManifestObject
Source§impl Ord for ManifestObject
impl Ord for ManifestObject
Source§fn cmp(&self, other: &ManifestObject) -> Ordering
fn cmp(&self, other: &ManifestObject) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ManifestObject
impl PartialEq for ManifestObject
Source§impl PartialOrd for ManifestObject
impl PartialOrd for ManifestObject
impl StructuralPartialEq for ManifestObject
Auto Trait Implementations§
impl Freeze for ManifestObject
impl RefUnwindSafe for ManifestObject
impl Send for ManifestObject
impl Sync for ManifestObject
impl Unpin for ManifestObject
impl UnsafeUnpin for ManifestObject
impl UnwindSafe for ManifestObject
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