pub struct RequestBuilder { /* private fields */ }
Expand description
RequestBuilder
provides a mechanism for setting optional parameters on a request.
Each RequestBuilder
parameter method call returns Self
, so setting of multiple
parameters can be chained.
To finalize and submit the request, invoke .await
, which
which will convert the RequestBuilder
into a future
executes the request and returns a Result
with the parsed
response.
In order to execute the request without polling the service
until the operation completes, use .send().await
instead.
If you need lower-level access to the raw response details
(e.g. to inspect response headers or raw body data) then you
can finalize the request using the
RequestBuilder::send()
method which returns a future
that resolves to a lower-level Response
value.
Implementations§
source§impl RequestBuilder
impl RequestBuilder
sourcepub fn timeout(self, timeout: i64) -> Self
pub fn timeout(self, timeout: i64) -> Self
The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Blob Service Operations.
sourcepub fn x_ms_meta(self, x_ms_meta: impl Into<String>) -> Self
pub fn x_ms_meta(self, x_ms_meta: impl Into<String>) -> Self
Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value pairs are specified, the operation will copy the metadata from the source blob or file to the destination blob. If one or more name-value pairs are specified, the destination blob is created with the specified metadata, and metadata is not copied from the source blob or file. Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more information.
sourcepub fn x_ms_blob_public_access(
self,
x_ms_blob_public_access: impl Into<String>,
) -> Self
pub fn x_ms_blob_public_access( self, x_ms_blob_public_access: impl Into<String>, ) -> Self
Specifies whether data in the container may be accessed publicly and the level of access
sourcepub fn x_ms_client_request_id(
self,
x_ms_client_request_id: impl Into<String>,
) -> Self
pub fn x_ms_client_request_id( self, x_ms_client_request_id: impl Into<String>, ) -> Self
Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
sourcepub fn x_ms_default_encryption_scope(
self,
x_ms_default_encryption_scope: impl Into<String>,
) -> Self
pub fn x_ms_default_encryption_scope( self, x_ms_default_encryption_scope: impl Into<String>, ) -> Self
Optional. Version 2019-07-07 and later. Specifies the default encryption scope to set on the container and use for all future writes.
sourcepub fn x_ms_deny_encryption_scope_override(
self,
x_ms_deny_encryption_scope_override: bool,
) -> Self
pub fn x_ms_deny_encryption_scope_override( self, x_ms_deny_encryption_scope_override: bool, ) -> Self
Optional. Version 2019-07-07 and newer. If true, prevents any request from specifying a different encryption scope than the scope set on the container.
sourcepub fn send(self) -> BoxFuture<'static, Result<Response>>
pub fn send(self) -> BoxFuture<'static, Result<Response>>
Returns a future that sends the request and returns a Response
object that provides low-level access to full response details.
You should typically use .await
(which implicitly calls IntoFuture::into_future()
) to finalize and send requests rather than send()
.
However, this function can provide more flexibility when required.
Trait Implementations§
source§impl Clone for RequestBuilder
impl Clone for RequestBuilder
source§fn clone(&self) -> RequestBuilder
fn clone(&self) -> RequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RequestBuilder
impl !RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl !UnwindSafe for RequestBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)