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

A builder to create a DownloadAuthorizationRequest.

After building the DownloadAuthorizationRequest, pass it to get_download_authorization to obtain a DownloadAuthorization

The bucket ID, file name prefix, and valid duration are required.

See https://www.backblaze.com/b2/docs/b2_get_download_authorization.html for furter information.

Implementations

Create a download authorization for the specified bucket ID.

Use the given file name prefix to determine what files the DownloadAuthorization will allow access to.

Specify the amount of time for which the DownloadAuthorization will be valid.

This must be between one second and one week, inclusive.

If specified, download requests must have this content disposition. The grammar is specified in RFC 6266, except that parameter names containing a ‘*’ are not allowed.

If specified, download requests must have this content language. The grammar is specified in RFC 2616.

If specified, download requests must have this expiration.

If specified, download requests must have this cache control.

If specified, download requests must have this content encoding.

If specified, download requests must have this content type.

Trait Implementations

Returns the “default value” for a type. 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.