pub struct DownloadFileBuilder<'a> { /* private fields */ }

Implementations

Download a file with the specified file name.

The name will be percent-encoded.

If both file_name and file_id are provided, the last one will be used.

Download a file with the specified file ID.

If both file_name and file_id are provided, the last one will be used.

Specify the byte range of the file to download.

There will be a Content-Range header that specifies the bytes returned and the total number of bytes.

The HTTP status code when a partial file is returned is 206 Partial Content rather than 200 OK.

Override the Content-Disposition header of the response with the one provided.

If including this header will exceed the 7,000 byte header limit (2,048 bytes if using server-side encryption), the request will be rejected.

Override the Content-Language header of the response with the one provided.

If including this header will exceed the 7,000 byte header limit (2,048 bytes if using server-side encryption), the request will be rejected.

Override the Expires header of the response with the one provided.

If including this header will exceed the 7,000 byte header limit (2,048 bytes if using server-side encryption), the request will be rejected.

Override the Cache-Control header of the response with the one provided.

If including this header will exceed the 7,000 byte header limit (2,048 bytes if using server-side encryption), the request will be rejected.

Override the Content-Encoding header of the response with the one provided.

If including this header will exceed the 7,000 byte header limit (2,048 bytes if using server-side encryption), the request will be rejected.

Override the Content-Type header of the response with the one provided.

If including this header will exceed the 7,000 byte header limit (2,048 bytes if using server-side encryption), the request will be rejected.

Set the encryption settings to use for the file.

This is required if using self-managed server-side encryption.

Build a DownloadFile request.

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.