Skip to main content

SignedIdentifiersHeaders

Trait SignedIdentifiersHeaders 

Source
pub trait SignedIdentifiersHeaders: Sealed {
    // Required methods
    fn etag(&self) -> Result<Option<Etag>>;
    fn last_modified(&self) -> Result<Option<OffsetDateTime>>;
    fn access(&self) -> Result<Option<PublicAccessType>>;
}
Expand description

Provides access to typed response headers for BlobContainerClient::get_access_policy()

§Examples

use azure_core::{Result, http::{Response, XmlFormat}};
use azure_storage_blob::models::{SignedIdentifiers, SignedIdentifiersHeaders};
async fn example() -> Result<()> {
    let response: Response<SignedIdentifiers, XmlFormat> = unimplemented!();
    // Access response headers
    if let Some(etag) = response.etag()? {
        println!("etag: {:?}", etag);
    }
    if let Some(last_modified) = response.last_modified()? {
        println!("last-modified: {:?}", last_modified);
    }
    if let Some(access) = response.access()? {
        println!("x-ms-blob-public-access: {:?}", access);
    }
    Ok(())
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SignedIdentifiersHeaders for Response<SignedIdentifiers, XmlFormat>

Source§

fn etag(&self) -> Result<Option<Etag>>

An opaque identifier for the current state of the resource.

Source§

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

The date-time that the resource was last modified.

Source§

fn access(&self) -> Result<Option<PublicAccessType>>

The public access setting for the container.

Implementors§