Struct garage_model::version_table::Version
source · [−]pub struct Version {
pub uuid: Uuid,
pub deleted: Bool,
pub blocks: Map<VersionBlockKey, VersionBlock>,
pub parts_etags: Map<u64, String>,
pub bucket_id: Uuid,
pub key: String,
}
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
Etag of each part in case of a multipart upload, empty otherwise
bucket_id: Uuid
Bucket in which the related object is stored
key: String
Key in which the related object is stored
Implementations
Trait Implementations
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
Get the key used to partition
Is the entry a tombstone? Default implementation always return false
Auto Trait Implementations
impl RefUnwindSafe for Version
impl UnwindSafe for Version
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more