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_access_tier(self, x_ms_access_tier: impl Into<String>) -> Self
pub fn x_ms_access_tier(self, x_ms_access_tier: impl Into<String>) -> Self
Optional. Indicates the tier to be set on the blob.
Sourcepub fn x_ms_rehydrate_priority(
self,
x_ms_rehydrate_priority: impl Into<String>,
) -> Self
pub fn x_ms_rehydrate_priority( self, x_ms_rehydrate_priority: impl Into<String>, ) -> Self
Optional: Indicates the priority with which to rehydrate an archived blob.
Sourcepub fn x_ms_source_if_modified_since(
self,
x_ms_source_if_modified_since: impl Into<OffsetDateTime>,
) -> Self
pub fn x_ms_source_if_modified_since( self, x_ms_source_if_modified_since: impl Into<OffsetDateTime>, ) -> Self
Specify this header value to operate only on a blob if it has been modified since the specified date/time.
Sourcepub fn x_ms_source_if_unmodified_since(
self,
x_ms_source_if_unmodified_since: impl Into<OffsetDateTime>,
) -> Self
pub fn x_ms_source_if_unmodified_since( self, x_ms_source_if_unmodified_since: impl Into<OffsetDateTime>, ) -> Self
Specify this header value to operate only on a blob if it has not been modified since the specified date/time.
Sourcepub fn x_ms_source_if_match(
self,
x_ms_source_if_match: impl Into<String>,
) -> Self
pub fn x_ms_source_if_match( self, x_ms_source_if_match: impl Into<String>, ) -> Self
Specify an ETag value to operate only on blobs with a matching value.
Sourcepub fn x_ms_source_if_none_match(
self,
x_ms_source_if_none_match: impl Into<String>,
) -> Self
pub fn x_ms_source_if_none_match( self, x_ms_source_if_none_match: impl Into<String>, ) -> Self
Specify an ETag value to operate only on blobs without a matching value.
Specify a SQL where clause on blob tags to operate only on blobs with a matching value.
Sourcepub fn if_modified_since(
self,
if_modified_since: impl Into<OffsetDateTime>,
) -> Self
pub fn if_modified_since( self, if_modified_since: impl Into<OffsetDateTime>, ) -> Self
Specify this header value to operate only on a blob if it has been modified since the specified date/time.
Sourcepub fn if_unmodified_since(
self,
if_unmodified_since: impl Into<OffsetDateTime>,
) -> Self
pub fn if_unmodified_since( self, if_unmodified_since: impl Into<OffsetDateTime>, ) -> Self
Specify this header value to operate only on a blob if it has not been modified since the specified date/time.
Sourcepub fn if_match(self, if_match: impl Into<String>) -> Self
pub fn if_match(self, if_match: impl Into<String>) -> Self
Specify an ETag value to operate only on blobs with a matching value.
Sourcepub fn if_none_match(self, if_none_match: impl Into<String>) -> Self
pub fn if_none_match(self, if_none_match: impl Into<String>) -> Self
Specify an ETag value to operate only on blobs without a matching value.
Specify a SQL where clause on blob tags to operate only on blobs with a matching value.
Sourcepub fn x_ms_lease_id(self, x_ms_lease_id: impl Into<String>) -> Self
pub fn x_ms_lease_id(self, x_ms_lease_id: impl Into<String>) -> Self
If specified, the operation only succeeds if the resource’s lease is active and matches this ID.
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.
Optional. Used to set blob tags in various blob operations.
Sourcepub fn x_ms_seal_blob(self, x_ms_seal_blob: bool) -> Self
pub fn x_ms_seal_blob(self, x_ms_seal_blob: bool) -> Self
Overrides the sealed state of the destination blob. Service version 2019-12-12 and newer.
Sourcepub fn x_ms_immutability_policy_until_date(
self,
x_ms_immutability_policy_until_date: impl Into<OffsetDateTime>,
) -> Self
pub fn x_ms_immutability_policy_until_date( self, x_ms_immutability_policy_until_date: impl Into<OffsetDateTime>, ) -> Self
Specifies the date time when the blobs immutability policy is set to expire.
Sourcepub fn x_ms_immutability_policy_mode(
self,
x_ms_immutability_policy_mode: impl Into<String>,
) -> Self
pub fn x_ms_immutability_policy_mode( self, x_ms_immutability_policy_mode: impl Into<String>, ) -> Self
Specifies the immutability policy mode to set on the blob.
Sourcepub fn x_ms_legal_hold(self, x_ms_legal_hold: bool) -> Self
pub fn x_ms_legal_hold(self, x_ms_legal_hold: bool) -> Self
Specified if a legal hold should be set on the blob.
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 more