pub struct UpdateBucketBuilder { /* private fields */ }
Expand description

A builder to create an UpdateBucket request.

Implementations

The ID of the bucket to update.

This is required.

Change the bucket’s type to the one provided.

Replace the current bucket information with the specified information.

This can contain arbitrary metadata for your own use. You can also set cache-control settings from here (but see cache_control). If Cache-Control is set here and via the cache-control method, the latter will override this value.

Set the default Cache-Control header value for files downloaded from the bucket.

Replace the bucket’s current provided CORS rules with the provided rules.

See https://www.backblaze.com/b2/docs/cors_rules.html for further information.

Replace the bucket’s default retention policy.

The Authorization must have Capability::WriteBucketRetentions.

Replace the bucket’s server-side encryption settings.

The Authorization must have Capability::WriteBucketEncryption.

Replace the bucket’s lifecycle rules with the provided list.

See the documentation for CreateBucketBuilder::lifecycle_rules for the lifecycle requirements and examples.

Only perform the update if the bucket’s current revision is the provided version.

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

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.