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 moreAuto Trait Implementations§
impl Freeze for MultipartUploadContext
impl RefUnwindSafe for MultipartUploadContext
impl Send for MultipartUploadContext
impl Sync for MultipartUploadContext
impl Unpin for MultipartUploadContext
impl UnsafeUnpin for MultipartUploadContext
impl UnwindSafe for MultipartUploadContext
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more