pub struct PutObjectRequest<B> {
pub key: ObjectKey,
pub body: B,
pub content_type: Option<String>,
pub user_metadata: BTreeMap<String, String>,
pub conditions: Conditions,
pub checksum_algorithm: Option<ChecksumAlgorithm>,
}Expand description
Request to upload one object.
Fields§
§key: ObjectKeyDestination object key.
body: BUpload body. Replayability is determined by the body type.
content_type: Option<String>Optional media type.
user_metadata: BTreeMap<String, String>Caller-defined object metadata.
conditions: ConditionsPreconditions for the write.
checksum_algorithm: Option<ChecksumAlgorithm>Ask S3 to calculate or validate this checksum algorithm.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for PutObjectRequest<B>where
B: Freeze,
impl<B> RefUnwindSafe for PutObjectRequest<B>where
B: RefUnwindSafe,
impl<B> Send for PutObjectRequest<B>where
B: Send,
impl<B> Sync for PutObjectRequest<B>where
B: Sync,
impl<B> Unpin for PutObjectRequest<B>where
B: Unpin,
impl<B> UnsafeUnpin for PutObjectRequest<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for PutObjectRequest<B>where
B: UnwindSafe,
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