pub trait BlobClientChangeLeaseResultHeaders: Sealed {
// Required methods
fn last_modified(&self) -> Result<Option<OffsetDateTime>>;
fn etag(&self) -> Result<Option<String>>;
fn lease_id(&self) -> Result<Option<String>>;
}
Expand description
Provides access to typed response headers for BlobClient::change_lease()
§Examples
use azure_core::{Result, http::{Response, NoFormat}};
use azure_storage_blob::models::{BlobClientChangeLeaseResult, BlobClientChangeLeaseResultHeaders};
async fn example() -> Result<()> {
let response: Response<BlobClientChangeLeaseResult, NoFormat> = unimplemented!();
// Access response headers
if let Some(last_modified) = response.last_modified()? {
println!("Last-Modified: {:?}", last_modified);
}
if let Some(etag) = response.etag()? {
println!("etag: {:?}", etag);
}
if let Some(lease_id) = response.lease_id()? {
println!("x-ms-lease-id: {:?}", lease_id);
}
Ok(())
}