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

The primary synchronous entrypoint to perform operations with Google Cloud Storage.

Implementations

Constructs a client with the default token provider, where it attemps to obtain the credentials from the following locations:

  1. Checks for the environment variable SERVICE_ACCOUNT, and if it exists, reads the file at the path specified there as a credentials json file.
  2. It attemps to do the same with the GOOGLE_APPLICATION_CREDENTIALS var.
  3. It reads the SERVICE_ACCOUNT_JSON environment variable directly as json and uses that 4.It attemps to do the same with the GOOGLE_APPLICATION_CREDENTIALS_JSON var.

Initializer with a provided refreshable token

Synchronous operations on Buckets.

Synchronous operations on BucketAccessControls.

Synchronous operations on DefaultObjectAccessControls.

Synchronous operations on HmacKeys.

Synchronous operations on Objects.

Synchronous operations on ObjectAccessControls.

Trait Implementations

Formats the value using the given formatter. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more