Struct cloud_storage::client::Client
source · [−]pub struct Client { /* private fields */ }Expand description
The primary 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:
- Checks for the environment variable
SERVICE_ACCOUNT, and if it exists, reads the file at the path specified there as a credentials json file. - It attemps to do the same with the
GOOGLE_APPLICATION_CREDENTIALSvar. - It reads the
SERVICE_ACCOUNT_JSONenvironment variable directly as json and uses that - It attemps to do the same with the
GOOGLE_APPLICATION_CREDENTIALS_JSONvar.
Initializer with a provided refreshable token
Operations on Buckets.
Operations on BucketAccessControls.
Operations on DefaultObjectAccessControls.
Operations on HmacKeys.
Operations on Objects.
Operations on ObjectAccessControls.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
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