pub struct PutOptionsBuilder<'bucket> { /* private fields */ }
Expand description
Options for configuring the put operation.
Implementations§
source§impl<'bucket> PutOptionsBuilder<'bucket>
impl<'bucket> PutOptionsBuilder<'bucket>
sourcepub fn http_metadata(self, metadata: HttpMetadata) -> Self
pub fn http_metadata(self, metadata: HttpMetadata) -> Self
Various HTTP headers associated with the object. Refer to HttpMetadata.
sourcepub fn custom_metadata(
self,
metadata: impl Into<HashMap<String, String>>,
) -> Self
pub fn custom_metadata( self, metadata: impl Into<HashMap<String, String>>, ) -> Self
A map of custom, user-defined metadata that will be stored with the object.
sourcepub fn md5(self, bytes: impl Into<Vec<u8>>) -> Self
pub fn md5(self, bytes: impl Into<Vec<u8>>) -> Self
A md5 hash to use to check the received object’s integrity.
sourcepub fn sha1(self, bytes: impl Into<Vec<u8>>) -> Self
pub fn sha1(self, bytes: impl Into<Vec<u8>>) -> Self
A sha1 hash to use to check the received object’s integrity.
sourcepub fn sha256(self, bytes: impl Into<Vec<u8>>) -> Self
pub fn sha256(self, bytes: impl Into<Vec<u8>>) -> Self
A sha256 hash to use to check the received object’s integrity.
sourcepub fn sha384(self, bytes: impl Into<Vec<u8>>) -> Self
pub fn sha384(self, bytes: impl Into<Vec<u8>>) -> Self
A sha384 hash to use to check the received object’s integrity.
Auto Trait Implementations§
impl<'bucket> Freeze for PutOptionsBuilder<'bucket>
impl<'bucket> !RefUnwindSafe for PutOptionsBuilder<'bucket>
impl<'bucket> !Send for PutOptionsBuilder<'bucket>
impl<'bucket> !Sync for PutOptionsBuilder<'bucket>
impl<'bucket> Unpin for PutOptionsBuilder<'bucket>
impl<'bucket> !UnwindSafe for PutOptionsBuilder<'bucket>
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