Struct backblaze_b2::raw::download::DownloadAuthorization
[−]
[src]
pub struct DownloadAuthorization<'a> { pub authorization_token: String, pub bucket_id: Option<String>, pub file_name_prefix: String, pub download_url: &'a str, }
Fields
bucket_id: Option<String>
file_name_prefix: String
download_url: &'a str
Methods
impl<'a> DownloadAuthorization<'a>
[src]
fn auth_header(&self) -> B2AuthHeader
fn allows_bucket(&self, bucket: &str) -> bool
impl<'a> DownloadAuthorization<'a>
[src]
fn download_file_by_id<InfoType>(
&self,
file_id: &str,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
&self,
file_id: &str,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
fn download_range_by_id<InfoType>(
&self,
file_id: &str,
range_min: u64,
range_max: u64,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
&self,
file_id: &str,
range_min: u64,
range_max: u64,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
fn download_file_by_name<InfoType>(
&self,
bucket_name: &str,
file_name: &str,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
&self,
bucket_name: &str,
file_name: &str,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
fn download_range_by_name<InfoType>(
&self,
bucket_name: &str,
file_name: &str,
range_min: u64,
range_max: u64,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
&self,
bucket_name: &str,
file_name: &str,
range_min: u64,
range_max: u64,
client: &Client
) -> Result<(impl Read, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
Trait Implementations
impl<'a> Clone for DownloadAuthorization<'a>
[src]
fn clone(&self) -> DownloadAuthorization<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more