pub struct MultipartUploadContext {
pub bucket: String,
pub key: String,
pub sse: MultipartSseMode,
pub tags: Option<TagSet>,
pub object_lock_mode: Option<LockMode>,
pub object_lock_retain_until: Option<DateTime<Utc>>,
pub object_lock_legal_hold: bool,
}Expand description
Everything CreateMultipartUpload captured for UploadPart /
CompleteMultipartUpload to act on. All fields are owned so the
store can hand out cheap Clones under the read lock.
Fields§
§bucket: StringBucket the upload targets. Stored even though
CompleteMultipartUploadInput::bucket carries it too — keeps the
side-table self-contained for tests / debug dumps.
key: StringLogical object key the upload will materialise into. Stored for
the same reason as bucket.
sse: MultipartSseModeSSE recipe captured from the Create’s input headers.
Tags parsed off Tagging / x-amz-tagging on Create. None
when the client didn’t ask for tagging; otherwise the TagSet is
applied via TagManager::put_object_tags on Complete (BUG-9
fix).
object_lock_mode: Option<LockMode>Per-PUT explicit Object Lock mode supplied via
x-amz-object-lock-mode on Create. Mirrors put_object’s
explicit_lock_mode capture so Complete commits the right
retention. None when no header was sent (Complete then falls
back to the bucket default via apply_default_on_put).
object_lock_retain_until: Option<DateTime<Utc>>Per-PUT explicit Object Lock retain-until timestamp.
object_lock_legal_hold: boolPer-PUT explicit Object Lock legal-hold flag (true when
x-amz-object-lock-legal-hold: ON was sent on Create).
Trait Implementations§
Source§impl Clone for MultipartUploadContext
impl Clone for MultipartUploadContext
Source§fn clone(&self) -> MultipartUploadContext
fn clone(&self) -> MultipartUploadContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more