Struct garage_model::s3::version_table::Version
source · pub struct Version {
pub uuid: Uuid,
pub deleted: Bool,
pub blocks: Map<VersionBlockKey, VersionBlock>,
pub backlink: VersionBacklink,
}
Expand description
A version of an object
Fields§
§uuid: Uuid
UUID of the version, used as partition key
deleted: Bool
Is this version deleted
blocks: Map<VersionBlockKey, VersionBlock>
list of blocks of data composing the version
backlink: VersionBacklink
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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 Migrate for Version
impl Migrate for Version
source§const VERSION_MARKER: &'static [u8] = b"G09s3v"
const VERSION_MARKER: &'static [u8] = b"G09s3v"
A sequence of bytes to add at the beginning of the serialized
string, to identify that the data is of this version.
§type Previous = Version
type Previous = Version
The previous version of this data type, from which items of this version
can be migrated.
source§fn migrate(old: Version) -> Version
fn migrate(old: Version) -> Version
The migration function that transforms a value decoded in the old format
to an up-to-date value.
source§impl PartialEq for Version
impl PartialEq for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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> 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.