Skip to main content

BlobDownloadProperties

Struct BlobDownloadProperties 

Source
pub struct BlobDownloadProperties {
Show 36 fields pub etag: Option<Etag>, pub last_modified: Option<OffsetDateTime>, pub created_on: Option<OffsetDateTime>, pub last_accessed: Option<OffsetDateTime>, pub content_length: Option<u64>, pub content_type: Option<String>, pub cache_control: Option<String>, pub content_disposition: Option<String>, pub content_encoding: Option<String>, pub content_language: Option<String>, pub content_md5: Option<Vec<u8>>, pub content_crc64: Option<Vec<u8>>, pub blob_content_md5: Option<Vec<u8>>, pub blob_type: Option<BlobType>, pub blob_sequence_number: Option<i64>, pub blob_committed_block_count: Option<i32>, pub is_sealed: Option<bool>, pub metadata: HashMap<String, String>, pub version_id: Option<String>, pub lease_state: Option<LeaseState>, pub lease_status: Option<LeaseStatus>, pub lease_duration: Option<LeaseDuration>, pub legal_hold: Option<bool>, pub immutability_policy_mode: Option<ImmutabilityPolicyMode>, pub immutability_policy_expires_on: Option<OffsetDateTime>, pub copy_completed_on: Option<OffsetDateTime>, pub copy_id: Option<String>, pub copy_progress: Option<String>, pub copy_source: Option<String>, pub copy_status: Option<CopyStatus>, pub copy_status_description: Option<String>, pub object_replication_policy_id: Option<String>, pub object_replication_rules: HashMap<String, String>, pub tag_count: Option<i64>, pub encryption_scope: Option<String>, pub encryption_key_sha256: Option<String>,
}
Expand description

Blob properties parsed from the initial response headers of a BlobClient::download() operation.

Fields§

§etag: Option<Etag>

The blob’s ETag (ETag header).

§last_modified: Option<OffsetDateTime>

Date/time the blob was last modified (Last-Modified header).

§created_on: Option<OffsetDateTime>

Date/time the blob was created (x-ms-creation-time header).

§last_accessed: Option<OffsetDateTime>

Date/time the blob was last read or written (x-ms-last-access-time header).

§content_length: Option<u64>

Number of bytes in the response body (Content-Length header).

For a full-blob download this equals the total blob size. For a ranged or partitioned download, this is the byte count of the initial response.

§content_type: Option<String>

The content type of the blob (Content-Type header).

§cache_control: Option<String>

The cache control directive for the blob (Cache-Control header).

§content_disposition: Option<String>

The content disposition of the blob (Content-Disposition header).

§content_encoding: Option<String>

The content encoding of the blob (Content-Encoding header).

§content_language: Option<String>

The content language of the blob (Content-Language header).

§content_md5: Option<Vec<u8>>

MD5 hash of the response content (Content-MD5 header).

For full-blob reads this covers the entire blob. For ranged reads it covers only the returned range. To get the MD5 of the full blob content for a ranged read, see blob_content_md5.

§content_crc64: Option<Vec<u8>>

CRC-64 hash for the downloaded range (x-ms-content-crc64 header).

Only returned for ranged reads (when range is set) and only when range_get_content_crc64 is true. The range must be 4 MiB or smaller, otherwise the service rejects the request.

§blob_content_md5: Option<Vec<u8>>

MD5 hash of the full blob content (x-ms-blob-content-md5 header).

Only returned for ranged reads. This is the hash of the complete blob, not just the requested range.

§blob_type: Option<BlobType>

The type of blob (x-ms-blob-type header): BlockBlob, PageBlob, or AppendBlob.

§blob_sequence_number: Option<i64>

Current sequence number for a page blob (x-ms-blob-sequence-number header).

§blob_committed_block_count: Option<i32>

Number of committed blocks, returned only for append blobs (x-ms-blob-committed-block-count header).

§is_sealed: Option<bool>

Whether this append blob has been sealed (x-ms-blob-sealed header).

§metadata: HashMap<String, String>

User-defined metadata on the blob (all x-ms-meta-* headers).

§version_id: Option<String>

Version ID of the blob, if versioning is enabled (x-ms-version-id header).

§lease_state: Option<LeaseState>

State of the blob’s lease (x-ms-lease-state header).

§lease_status: Option<LeaseStatus>

Status of the blob’s lease (x-ms-lease-status header).

§lease_duration: Option<LeaseDuration>

Duration type of the lease (x-ms-lease-duration header).

§legal_hold: Option<bool>

Whether the blob has a legal hold (x-ms-legal-hold header).

§immutability_policy_mode: Option<ImmutabilityPolicyMode>

The immutability policy mode (x-ms-immutability-policy-mode header).

§immutability_policy_expires_on: Option<OffsetDateTime>

The immutability policy expiry time (x-ms-immutability-policy-until-date header).

§copy_completed_on: Option<OffsetDateTime>

Completion time of the last copy operation (x-ms-copy-completion-time header).

§copy_id: Option<String>

String identifier for the last copy operation (x-ms-copy-id header).

§copy_progress: Option<String>

Progress of an in-progress copy operation (x-ms-copy-progress header).

§copy_source: Option<String>

URL of the source blob for the last copy operation (x-ms-copy-source header).

§copy_status: Option<CopyStatus>

State of the copy operation (x-ms-copy-status header).

§copy_status_description: Option<String>

Description of a failed or aborted copy operation (x-ms-copy-status-description header).

§object_replication_policy_id: Option<String>

Destination policy ID for object replication (x-ms-or-policy-id header).

§object_replication_rules: HashMap<String, String>

Object replication rules and their statuses (all x-ms-or-* headers).

§tag_count: Option<i64>

Number of tags on the blob (x-ms-tag-count header).

§encryption_scope: Option<String>

The name of the encryption scope used to encrypt the blob (x-ms-encryption-scope header).

§encryption_key_sha256: Option<String>

Base64-encoded SHA-256 hash of the customer-provided encryption key used to encrypt the blob (x-ms-encryption-key-sha256 header).

Trait Implementations§

Source§

impl Debug for BlobDownloadProperties

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ServiceExt for T

Source§

fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>
where Self: Sized,

Apply a transformation to the response body. Read more
Source§

fn decompression(self) -> Decompression<Self>
where Self: Sized,

Decompress response bodies. Read more
Source§

fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using HTTP status codes. Read more
Source§

fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using gRPC headers. Read more
Source§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Follow redirect resposes using the Standard policy. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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