pub struct DownloadFile<'a> { /* private fields */ }
Expand description

A request to download a file or a portion of a file from the B2 API.

A simple file request can be created via with_name or with_id; for more complex requests use a DownloadFileBuilder.

If you use self-managed server-side encryption, you must use DownloadFileBuilder to pass the encryption information.

See https://www.backblaze.com/b2/docs/b2_download_file_by_id.html for information on downloading files, including the list of headers that may be returned.

Implementations

Download a file with the specified file ID.

Download a file with the specified file name.

The name will be percent-encoded.

Generate the public URL for a GET request for a file in a public bucket.

A file in a public bucket does not require an authorization token to access, making this link suitable for distribution (e.g., embedding in a web page).

You must provide an Authorization or DownloadAuthorization that has access to the file.

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.