pub struct GetBuilder { /* private fields */ }Expand description
A get request builder.
Implementations§
Source§impl GetBuilder
impl GetBuilder
Sourcepub fn decompress(self, decompress: bool) -> Self
pub fn decompress(self, decompress: bool) -> Self
Indicates whether the request should automatically handle decompression of known algorithms, or rather return the payload as it is stored, along with the compression algorithm it is stored in.
By default, automatic decompression is enabled.
Sourcepub fn accept_encoding(
self,
encodings: impl IntoIterator<Item = Compression>,
) -> Self
pub fn accept_encoding( self, encodings: impl IntoIterator<Item = Compression>, ) -> Self
Specifies compression encodings the caller can handle natively.
When the stored object’s compression matches one of these, the payload
is returned still compressed and metadata.compression is preserved.
An empty list (the default) means the client does not accept any
compressed encoding, so automatic decompression applies as usual.
Sourcepub async fn send(self) -> Result<Option<GetResponse>>
pub async fn send(self) -> Result<Option<GetResponse>>
Sends the get request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GetBuilder
impl !RefUnwindSafe for GetBuilder
impl Send for GetBuilder
impl Sync for GetBuilder
impl Unpin for GetBuilder
impl !UnwindSafe for GetBuilder
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