azure_storage_blobs/options/
access_tier.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use azure_core::headers::{self, Header};

create_enum!(
    AccessTier,
    (Hot, "Hot"),
    (Cool, "Cool"),
    (Archive, "Archive")
);

impl Header for AccessTier {
    fn name(&self) -> headers::HeaderName {
        azure_core::headers::BLOB_ACCESS_TIER
    }

    fn value(&self) -> headers::HeaderValue {
        self.as_ref().to_owned().into()
    }
}