Enum garage_model::s3::object_table::ObjectVersionData
source · pub enum ObjectVersionData {
DeleteMarker,
Inline(ObjectVersionMeta, Vec<u8>),
FirstBlock(ObjectVersionMeta, Hash),
}
Expand description
Data stored in object version
Variants§
DeleteMarker
The object was deleted, this Version is a tombstone to mark it as such
Inline(ObjectVersionMeta, Vec<u8>)
The object is short, it’s stored inlined. It is never compressed. For encrypted objects, it is encrypted using AES256-GCM, like the encrypted headers.
FirstBlock(ObjectVersionMeta, Hash)
The object is not short, Hash of first block is stored here, next segments hashes are stored in the version table
Trait Implementations§
source§impl AutoCrdt for ObjectVersionData
impl AutoCrdt for ObjectVersionData
source§const WARN_IF_DIFFERENT: bool = true
const WARN_IF_DIFFERENT: bool = true
WARN_IF_DIFFERENT: emit a warning when values differ. Set this to true if
different values in your application should never happen. Set this to false
if you are actually relying on the semantics of
a ⊔ b = max(a, b)
.source§impl Clone for ObjectVersionData
impl Clone for ObjectVersionData
source§fn clone(&self) -> ObjectVersionData
fn clone(&self) -> ObjectVersionData
Returns a copy 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 ObjectVersionData
impl Debug for ObjectVersionData
source§impl<'de> Deserialize<'de> for ObjectVersionData
impl<'de> Deserialize<'de> for ObjectVersionData
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 Ord for ObjectVersionData
impl Ord for ObjectVersionData
source§fn cmp(&self, other: &ObjectVersionData) -> Ordering
fn cmp(&self, other: &ObjectVersionData) -> Ordering
1.21.0 · 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 ObjectVersionData
impl PartialEq for ObjectVersionData
source§fn eq(&self, other: &ObjectVersionData) -> bool
fn eq(&self, other: &ObjectVersionData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ObjectVersionData
impl PartialOrd for ObjectVersionData
source§fn partial_cmp(&self, other: &ObjectVersionData) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectVersionData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ObjectVersionData
impl Serialize for ObjectVersionData
impl Eq for ObjectVersionData
impl StructuralPartialEq for ObjectVersionData
Auto Trait Implementations§
impl Freeze for ObjectVersionData
impl RefUnwindSafe for ObjectVersionData
impl Send for ObjectVersionData
impl Sync for ObjectVersionData
impl Unpin for ObjectVersionData
impl UnwindSafe for ObjectVersionData
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.