pub struct Client { /* private fields */ }Expand description
A Google Cloud Storage client.
Note: This type does not need to be wrapped in an Arc as it uses it internally.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(token_provider: impl TokenProvider + 'static) -> Self
pub fn new(token_provider: impl TokenProvider + 'static) -> Self
Creates a new GCS client.
Sourcepub fn new_with_client(
token_provider: impl TokenProvider + 'static,
client: Client,
) -> Self
pub fn new_with_client( token_provider: impl TokenProvider + 'static, client: Client, ) -> Self
Creates a new GCS client using a provided reqwest::Client.
Sourcepub fn into_bucket_client(self, bucket_name: String) -> GcsBucketClient
pub fn into_bucket_client(self, bucket_name: String) -> GcsBucketClient
Returns a BucketClient scoped to the provided bucket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more