Struct backblaze_b2::raw::upload::UploadAuthorization [] [src]

pub struct UploadAuthorization {
    pub bucket_id: String,
    pub upload_url: String,
    pub authorization_token: String,
}

Contains the information needed to authorize an upload to b2. The b2 website specifies that you may not upload to the same url in parallel.

Fields

Methods

impl UploadAuthorization
[src]

Returns a hyper header that authorizes an upload request.

impl UploadAuthorization
[src]

Starts a request to upload a file to backblaze b2. This function returns an UploadFileRequest, which implements Write. When writing to this object, the files are sent to backblaze b2. This method of uploading can be used to implement things such as rate limiting of the request.

After the file has been written, you need to call the finish function on the UploadFileRequest, in order to close the connection.

The upload_file function can be used to do all of this.

Trait Implementations

impl Clone for UploadAuthorization
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for UploadAuthorization
[src]

Formats the value using the given formatter.