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

A builder to create a CreateKey object.

After creating the CreateKey, pass it to create_key to obtain a new application key.

See https://www.backblaze.com/b2/docs/b2_create_key.html for more information.

Implementations

Create a new builder, with the key’s name provided.

Create the key with the specified capabilities.

At least one capability must be provided.

Set an expiration duration for the key.

If provided, the key must be positive and no more than 1,000 days.

Limit the key’s access to the specified bucket.

Limit access to files to those that begin with the specified prefix.

Create a new CreateKey.

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.