pub struct Headers<'a>(/* private fields */);

Implementations§

source§

impl<'a> Headers<'a>

source

pub fn e_tag(&self) -> Result<&str>

The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes.

source

pub fn last_modified(&self) -> Result<OffsetDateTime>

Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob’s metadata or properties, changes the last-modified time of the blob.

source

pub fn content_md5(&self) -> Result<&str>

If the blob has an MD5 hash and this operation is to read the full blob, this response header is returned so that the client can check for message content integrity.

source

pub fn x_ms_client_request_id(&self) -> Result<&str>

If a client request id header is sent in the request, this header will be present in the response with the same value.

source

pub fn x_ms_request_id(&self) -> Result<&str>

This header uniquely identifies the request that was made and can be used for troubleshooting the request.

source

pub fn x_ms_version(&self) -> Result<&str>

Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above.

source

pub fn x_ms_version_id(&self) -> Result<&str>

A DateTime value returned by the service that uniquely identifies the blob. The value of this header indicates the blob version, and may be used in subsequent requests to access this version of the blob.

source

pub fn date(&self) -> Result<OffsetDateTime>

UTC date/time value generated by the service that indicates the time at which the response was initiated

source

pub fn x_ms_request_server_encrypted(&self) -> Result<bool>

The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise.

source

pub fn x_ms_encryption_key_sha256(&self) -> Result<&str>

The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key.

source

pub fn x_ms_encryption_scope(&self) -> Result<&str>

Returns the name of the encryption scope used to encrypt the blob contents and application metadata. Note that the absence of this header implies use of the default account encryption scope.

Auto Trait Implementations§

§

impl<'a> Freeze for Headers<'a>

§

impl<'a> RefUnwindSafe for Headers<'a>

§

impl<'a> Send for Headers<'a>

§

impl<'a> Sync for Headers<'a>

§

impl<'a> Unpin for Headers<'a>

§

impl<'a> UnwindSafe for Headers<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T