Skip to main content

BlobContainerClientReleaseLeaseResultHeaders

Trait BlobContainerClientReleaseLeaseResultHeaders 

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

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

§Examples

use azure_core::{Result, http::{Response, NoFormat}};
use azure_storage_blob::models::{BlobContainerClientReleaseLeaseResult, BlobContainerClientReleaseLeaseResultHeaders};
async fn example() -> Result<()> {
    let response: Response<BlobContainerClientReleaseLeaseResult, NoFormat> = 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);
    }
    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 BlobContainerClientReleaseLeaseResultHeaders for Response<BlobContainerClientReleaseLeaseResult, NoFormat>

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.

Implementors§