Struct backblaze_b2::raw::authorize::B2Authorization [] [src]

pub struct B2Authorization<'a> {
    pub credentials: &'a B2Credentials,
    pub authorization_token: String,
    pub api_url: String,
    pub download_url: String,
    pub recommended_part_size: usize,
    pub absolute_minimum_part_size: usize,
}

This struct contains the needed information to perform any b2 api call

Fields

Methods

impl<'a> B2Authorization<'a>
[src]

Returns a hyper header that correctly authorizes an api call to backblaze

impl<'a> B2Authorization<'a>
[src]

Performs a b2_list_buckets api call.

Performs a b2_create_bucket api call.

Performs a b2_create_bucket api call. This function initializes the bucket with no info.

Performs a b2_delete_bucket api call.

Performs a b2_delete_bucket api call.

impl<'a> B2Authorization<'a>
[src]

Performs a b2_get_file_info api call.

Performs a b2_list_file_names api call. This function returns at most max_file_count files.

In order to list all the files on b2, pass None as start_file_name on the first call to this function and to subsequent calls pass the Option returned by this function to the next call of this function, until that Option is None. This is also done by the convenience function list_all_file_names.

Filenames hidden by a hide marker are not returned.

Uses the function list_file_names several times in order to download a list of all file names on b2.

Filenames hidden by a hide marker are not returned.

Performs a b2_list_file_versions api call. This function returns at most max_file_count files.

In order to list all the files on b2, pass None as start_file_name on the first call to this function and to subsequent calls pass the Option returned by this function to the next call of this function, until that Option is None. This is also done by the convenience function list_all_file_names.

Uses the function list_file_versions several times in order to download a list of all file versions on b2.

Performs a b2_delete_file_version api call.

This function also works on unfinished large files and hide markers.

Performs a b2_hide_file api call.

This function creates a hide marker with the given name.

impl<'a> B2Authorization<'a>
[src]

Performs a b2_get_upload_url api call.

impl<'a> B2Authorization<'a>
[src]

Use an account authorization to create a DownloadAuthorization. This is preferred unless the restrictions on which files can be downloaded are needed.

Performs a [b2_get_download_authorization] api call.

Trait Implementations

impl<'a> Debug for B2Authorization<'a>
[src]

Formats the value using the given formatter.