pub struct MultipartUpload {
pub upload_id: String,
pub key: String,
pub initiated: DateTime<Utc>,
pub owner: Owner,
pub metadata: ObjectMetadata,
pub checksum_algorithm: Option<String>,
pub checksum_type: Option<String>,
pub parts: BTreeMap<u32, UploadPart>,
pub sse_algorithm: Option<String>,
pub sse_kms_key_id: Option<String>,
pub storage_class: String,
}Expand description
An in-progress multipart upload.
Created by CreateMultipartUpload and completed or aborted later.
Metadata is captured at creation time and applied to the final object
upon completion.
Fields§
§upload_id: StringUnique identifier for this upload.
key: StringThe object key that this upload will create.
initiated: DateTime<Utc>When the upload was initiated.
owner: OwnerThe owner who initiated the upload.
metadata: ObjectMetadataObject metadata captured at CreateMultipartUpload time.
checksum_algorithm: Option<String>The checksum algorithm requested for this upload (e.g. CRC32, SHA256).
checksum_type: Option<String>Whether the final checksum should be FULL_OBJECT or COMPOSITE.
parts: BTreeMap<u32, UploadPart>Parts uploaded so far, keyed by part number (1-based).
sse_algorithm: Option<String>Server-side encryption algorithm for the final object.
sse_kms_key_id: Option<String>KMS key ID for SSE-KMS encryption.
storage_class: StringThe storage class for the final object.
Implementations§
Source§impl MultipartUpload
impl MultipartUpload
Sourcepub fn new(
upload_id: String,
key: String,
owner: Owner,
metadata: ObjectMetadata,
) -> Self
pub fn new( upload_id: String, key: String, owner: Owner, metadata: ObjectMetadata, ) -> Self
Create a new multipart upload.
Sourcepub fn put_part(&mut self, part: UploadPart)
pub fn put_part(&mut self, part: UploadPart)
Insert or replace a part in this upload.
Sourcepub fn get_part(&self, part_number: u32) -> Option<&UploadPart>
pub fn get_part(&self, part_number: u32) -> Option<&UploadPart>
Get a part by its number.
Sourcepub fn parts_count(&self) -> usize
pub fn parts_count(&self) -> usize
Return the total number of parts uploaded so far.
Sourcepub fn total_size(&self) -> u64
pub fn total_size(&self) -> u64
Compute the total size of all uploaded parts.
Trait Implementations§
Source§impl Clone for MultipartUpload
impl Clone for MultipartUpload
Source§fn clone(&self) -> MultipartUpload
fn clone(&self) -> MultipartUpload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more