Struct cloud_storage::sync::Client
source · [−]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:
- 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 4.It attemps to do the same with theGOOGLE_APPLICATION_CREDENTIALS_JSONvar.
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
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