pub trait BlobClientBreakLeaseResultHeaders: Sealed {
// Required methods
fn etag(&self) -> Result<Option<Etag>>;
fn last_modified(&self) -> Result<Option<OffsetDateTime>>;
fn lease_time(&self) -> Result<Option<i32>>;
}Expand description
Provides access to typed response headers for BlobClient::break_lease()
§Examples
use azure_core::{Result, http::{Response, NoFormat}};
use azure_storage_blob::models::{BlobClientBreakLeaseResult, BlobClientBreakLeaseResultHeaders};
async fn example() -> Result<()> {
let response: Response<BlobClientBreakLeaseResult, 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);
}
if let Some(lease_time) = response.lease_time()? {
println!("x-ms-lease-time: {:?}", lease_time);
}
Ok(())
}Required Methods§
fn etag(&self) -> Result<Option<Etag>>
fn last_modified(&self) -> Result<Option<OffsetDateTime>>
fn lease_time(&self) -> Result<Option<i32>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".