Function backblaze_b2::raw::download::download_file_by_name
[−]
[src]
pub fn download_file_by_name<InfoType>(
download_url: &str,
bucket_name: &str,
file_name: &str,
client: &Client
) -> Result<(Response, Option<FileInfo<InfoType>>), B2Error> where
InfoType: Deserialize<'de>,
Performs a b2_download_file_by_name api call.
This function does not include any authorization in the request, so it can only be used to access public buckets.
Errors
This function returns a B2Error
in case something goes wrong. Besides the standard
errors, this function can fail with is_file_not_found
and is_bucket_not_found
.