pub struct StoredObject {
pub uri: Rsync,
pub hash: Option<ManifestHash>,
pub content: Bytes,
}Expand description
The content of an object placed in the store.
This type collects all the data that is stored for regular objects of a publication point: the raw bytes of the object as well as its hash as stated on the publication point’s manifest. This hash is currently not used since we only store objects when we know the publication point was valid. It is retained here solely for compatibility with the existing stored object format.
Fields§
§uri: RsyncThe URI of the object.
hash: Option<ManifestHash>The manifest hash of the object if available.
content: BytesThe content of the object.
Implementations§
Source§impl StoredObject
impl StoredObject
Trait Implementations§
Source§impl Clone for StoredObject
impl Clone for StoredObject
Source§fn clone(&self) -> StoredObject
fn clone(&self) -> StoredObject
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 StoredObject
impl Debug for StoredObject
Source§impl PartialEq for StoredObject
impl PartialEq for StoredObject
impl Eq for StoredObject
impl StructuralPartialEq for StoredObject
Auto Trait Implementations§
impl !Freeze for StoredObject
impl RefUnwindSafe for StoredObject
impl Send for StoredObject
impl Sync for StoredObject
impl Unpin for StoredObject
impl UnwindSafe for StoredObject
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.