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