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

A builder for a StartLargeFile request.

Implementations

Specify the bucket in which to store the new file.

Set the file’s name.

The provided name will be percent-encoded.

Set the file’s MIME type.

If not specified, B2 will attempt to determine the file’s type.

Set file metadata to be returned in headers when downloading the file.

For the following headers, use their corresponding methods instead of setting the values here:

If any of the above are set here and via their methods, the value from the method will override the value specified here.

Set the retention policy for the file.

Enable a legal hold on the file.

Disable a legal hold on the file.

Set the server-side encryption configuration for the file.

The time of the file’s last modification.

The SHA1 checksum of the file’s contents.

B2 will use this to verify the accuracy of the file upload, and it will be returned in the header X-Bz-Content-Sha1 when downloading the file.

The value to use for the Content-Disposition header when downloading the file.

Parameter continuations are not supported.

Note that the download request can override this value.

The value to use for the Content-Language header when downloading the file.

Note that the download request can override this value.

The value to use for the Expires header when the file is downloaded.

Note that the download request can override this value.

The value to use for the Cache-Control header when the file is downloaded.

This would override the value set at the bucket level, and can be overriden by a download request.

The value to use for the Content-Encoding header when the file is downloaded.

Note that this can be overriden by a download request.

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.