Struct garage_model::s3::mpu_table::MultipartUpload
source · pub struct MultipartUpload {
pub upload_id: Uuid,
pub timestamp: u64,
pub deleted: Bool,
pub parts: Map<MpuPartKey, MpuPart>,
pub bucket_id: Uuid,
pub key: String,
}
Expand description
A part of a multipart upload
Fields§
§upload_id: Uuid
Partition key = Upload id = UUID of the object version
timestamp: u64
The timestamp at which the multipart upload was created
deleted: Bool
Is this multipart upload deleted The MultipartUpload is marked as deleted as soon as the multipart upload is either completed or aborted
parts: Map<MpuPartKey, MpuPart>
List of uploaded parts, key = (part number, timestamp) In case of retries, all versions for each part are kept Everything is cleaned up only once the MultipartUpload is marked deleted
bucket_id: Uuid
Bucket in which the related object is stored
key: String
Key in which the related object is stored
Implementations§
Trait Implementations§
source§impl Clone for MultipartUpload
impl Clone for MultipartUpload
source§fn clone(&self) -> MultipartUpload
fn clone(&self) -> MultipartUpload
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 CountedItem for MultipartUpload
impl CountedItem for MultipartUpload
source§impl Crdt for MultipartUpload
impl Crdt for MultipartUpload
source§impl Debug for MultipartUpload
impl Debug for MultipartUpload
source§impl<'de> Deserialize<'de> for MultipartUpload
impl<'de> Deserialize<'de> for MultipartUpload
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 Entry<FixedBytes32, EmptyKey> for MultipartUpload
impl Entry<FixedBytes32, EmptyKey> for MultipartUpload
source§impl InitialFormat for MultipartUpload
impl InitialFormat for MultipartUpload
source§const VERSION_MARKER: &'static [u8] = b"G09s3mpu"
const VERSION_MARKER: &'static [u8] = b"G09s3mpu"
A sequence of bytes to add at the beginning of the serialized
string, to identify that the data is of this version.
source§impl PartialEq for MultipartUpload
impl PartialEq for MultipartUpload
source§fn eq(&self, other: &MultipartUpload) -> bool
fn eq(&self, other: &MultipartUpload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MultipartUpload
impl Serialize for MultipartUpload
impl Eq for MultipartUpload
impl StructuralPartialEq for MultipartUpload
Auto Trait Implementations§
impl Freeze for MultipartUpload
impl RefUnwindSafe for MultipartUpload
impl Send for MultipartUpload
impl Sync for MultipartUpload
impl Unpin for MultipartUpload
impl UnwindSafe for MultipartUpload
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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Migrate for Twhere
T: InitialFormat,
impl<T> Migrate for Twhere
T: InitialFormat,
source§const VERSION_MARKER: &'static [u8] = <T as InitialFormat>::VERSION_MARKER
const VERSION_MARKER: &'static [u8] = <T as InitialFormat>::VERSION_MARKER
A sequence of bytes to add at the beginning of the serialized
string, to identify that the data is of this version.
§type Previous = NoPrevious
type Previous = NoPrevious
The previous version of this data type, from which items of this version
can be migrated.
source§fn migrate(_previous: <T as Migrate>::Previous) -> T
fn migrate(_previous: <T as Migrate>::Previous) -> T
The migration function that transforms a value decoded in the old format
to an up-to-date value.