Struct azure_sdk_rust::azure::storage::blob::Blob
[−]
[src]
pub struct Blob { pub name: String, pub container_name: String, pub snapshot_time: Option<DateTime<UTC>>, pub last_modified: DateTime<UTC>, pub etag: String, pub content_length: u64, pub content_type: Mime, pub content_encoding: Option<String>, pub content_language: Option<String>, pub content_md5: Option<String>, pub cache_control: Option<String>, pub x_ms_blob_sequence_number: Option<u64>, pub blob_type: BlobType, pub lease_status: LeaseStatus, pub lease_state: LeaseState, pub lease_duration: Option<LeaseDuration>, pub copy_id: Option<String>, pub copy_status: Option<CopyStatus>, pub copy_source: Option<String>, pub copy_progress: Option<Range>, pub copy_completion: Option<DateTime<UTC>>, pub copy_status_description: Option<String>, }
Fields
name: String
container_name: String
snapshot_time: Option<DateTime<UTC>>
last_modified: DateTime<UTC>
etag: String
content_length: u64
content_type: Mime
content_encoding: Option<String>
content_language: Option<String>
content_md5: Option<String>
cache_control: Option<String>
x_ms_blob_sequence_number: Option<u64>
blob_type: BlobType
lease_status: LeaseStatus
lease_state: LeaseState
lease_duration: Option<LeaseDuration>
copy_id: Option<String>
copy_status: Option<CopyStatus>
copy_source: Option<String>
copy_progress: Option<Range>
copy_completion: Option<DateTime<UTC>>
copy_status_description: Option<String>
Methods
impl Blob
[src]
fn parse(elem: &Element, container_name: &str) -> Result<Blob, AzureError>
fn from_headers(blob_name: &str,
container_name: &str,
h: &Headers)
-> Result<Blob, AzureError>
container_name: &str,
h: &Headers)
-> Result<Blob, AzureError>
fn list(c: &Client,
container_name: &str,
lbo: &ListBlobOptions)
-> Result<IncompleteVector<Blob>, AzureError>
container_name: &str,
lbo: &ListBlobOptions)
-> Result<IncompleteVector<Blob>, AzureError>
fn get(c: &Client,
container_name: &str,
blob_name: &str,
snapshot: Option<&DateTime<UTC>>,
range: Option<&Range>,
lease_id: Option<&LeaseId>)
-> Result<(Blob, Box<Read>), AzureError>
container_name: &str,
blob_name: &str,
snapshot: Option<&DateTime<UTC>>,
range: Option<&Range>,
lease_id: Option<&LeaseId>)
-> Result<(Blob, Box<Read>), AzureError>
fn put(&self,
c: &Client,
po: &PutOptions,
r: Option<(&mut Read, u64)>)
-> Result<(), AzureError>
c: &Client,
po: &PutOptions,
r: Option<(&mut Read, u64)>)
-> Result<(), AzureError>
fn lease(&self,
c: &Client,
la: LeaseAction,
lbo: &LeaseBlobOptions)
-> Result<LeaseId, AzureError>
c: &Client,
la: LeaseAction,
lbo: &LeaseBlobOptions)
-> Result<LeaseId, AzureError>
fn put_page(&self,
c: &Client,
range: &BA512Range,
ppo: &PutPageOptions,
content: (&mut Read, u64))
-> Result<(), AzureError>
c: &Client,
range: &BA512Range,
ppo: &PutPageOptions,
content: (&mut Read, u64))
-> Result<(), AzureError>
fn put_block(&self,
c: &Client,
block_id: &str,
pbo: &PutBlockOptions,
content: (&mut Read, u64))
-> Result<(), AzureError>
c: &Client,
block_id: &str,
pbo: &PutBlockOptions,
content: (&mut Read, u64))
-> Result<(), AzureError>
fn clear_page(&self,
c: &Client,
range: &BA512Range,
lease_id: Option<LeaseId>)
-> Result<(), AzureError>
c: &Client,
range: &BA512Range,
lease_id: Option<LeaseId>)
-> Result<(), AzureError>