pub struct PutObjectStreamRequest<'a> { /* private fields */ }
Expand description
Builder for streaming PUT operations
Implementations§
Source§impl<'a> PutObjectStreamRequest<'a>
impl<'a> PutObjectStreamRequest<'a>
Sourcepub fn with_content_type<S: AsRef<str>>(self, content_type: S) -> Self
pub fn with_content_type<S: AsRef<str>>(self, content_type: S) -> Self
Set the Content-Type header
Sourcepub fn with_cache_control<S: AsRef<str>>(
self,
cache_control: S,
) -> Result<Self, S3Error>
pub fn with_cache_control<S: AsRef<str>>( self, cache_control: S, ) -> Result<Self, S3Error>
Set the Cache-Control header
Sourcepub fn with_content_encoding<S: AsRef<str>>(
self,
encoding: S,
) -> Result<Self, S3Error>
pub fn with_content_encoding<S: AsRef<str>>( self, encoding: S, ) -> Result<Self, S3Error>
Set the Content-Encoding header
Sourcepub fn with_header<K, V>(self, key: K, value: V) -> Result<Self, S3Error>
pub fn with_header<K, V>(self, key: K, value: V) -> Result<Self, S3Error>
Add a custom header
Sourcepub fn with_headers(self, headers: HeaderMap) -> Self
pub fn with_headers(self, headers: HeaderMap) -> Self
Add multiple custom headers (already validated HeaderMap)
Sourcepub fn with_metadata<K: AsRef<str>, V: AsRef<str>>(
self,
key: K,
value: V,
) -> Result<Self, S3Error>
pub fn with_metadata<K: AsRef<str>, V: AsRef<str>>( self, key: K, value: V, ) -> Result<Self, S3Error>
Add S3 metadata header (x-amz-meta-*)
Sourcepub async fn execute_stream<R: AsyncRead + Unpin + ?Sized>(
self,
reader: &mut R,
) -> Result<PutStreamResponse, S3Error>
pub async fn execute_stream<R: AsyncRead + Unpin + ?Sized>( self, reader: &mut R, ) -> Result<PutStreamResponse, S3Error>
Execute the streaming PUT request
Trait Implementations§
Source§impl<'a> Clone for PutObjectStreamRequest<'a>
impl<'a> Clone for PutObjectStreamRequest<'a>
Source§fn clone(&self) -> PutObjectStreamRequest<'a>
fn clone(&self) -> PutObjectStreamRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for PutObjectStreamRequest<'a>
impl<'a> !RefUnwindSafe for PutObjectStreamRequest<'a>
impl<'a> Send for PutObjectStreamRequest<'a>
impl<'a> Sync for PutObjectStreamRequest<'a>
impl<'a> Unpin for PutObjectStreamRequest<'a>
impl<'a> !UnwindSafe for PutObjectStreamRequest<'a>
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