Skip to main content

BlobClientStartCopyFromUrlResultHeaders

Trait BlobClientStartCopyFromUrlResultHeaders 

Source
pub trait BlobClientStartCopyFromUrlResultHeaders: Sealed {
    // Required methods
    fn etag(&self) -> Result<Option<Etag>>;
    fn last_modified(&self) -> Result<Option<OffsetDateTime>>;
    fn copy_id(&self) -> Result<Option<String>>;
    fn copy_status(&self) -> Result<Option<CopyStatus>>;
    fn version_id(&self) -> Result<Option<String>>;
}
Expand description

Provides access to typed response headers for BlobClient::start_copy_from_url()

§Examples

use azure_core::{Result, http::{Response, NoFormat}};
use azure_storage_blob::models::{BlobClientStartCopyFromUrlResult, BlobClientStartCopyFromUrlResultHeaders};
async fn example() -> Result<()> {
    let response: Response<BlobClientStartCopyFromUrlResult, 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(copy_id) = response.copy_id()? {
        println!("x-ms-copy-id: {:?}", copy_id);
    }
    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 BlobClientStartCopyFromUrlResultHeaders for Response<BlobClientStartCopyFromUrlResult, 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.

Source§

fn copy_id(&self) -> Result<Option<String>>

Identifier for this copy operation.

Source§

fn copy_status(&self) -> Result<Option<CopyStatus>>

Status of the copy operation.

Source§

fn version_id(&self) -> Result<Option<String>>

The version ID of the blob.

Implementors§