pub struct ClientBuilder { /* private fields */ }
Expand description
A builder for the blob service client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn with_location<C>(cloud_location: CloudLocation, credentials: C) -> Selfwhere
C: Into<StorageCredentials>,
pub fn with_location<C>(cloud_location: CloudLocation, credentials: C) -> Selfwhere
C: Into<StorageCredentials>,
Create a new instance of ClientBuilder
with a cloud location.
Sourcepub fn blob_service_client(self) -> BlobServiceClient
pub fn blob_service_client(self) -> BlobServiceClient
Convert the builder into a BlobServiceClient
instance.
Sourcepub fn container_client(
self,
container_name: impl Into<String>,
) -> ContainerClient
pub fn container_client( self, container_name: impl Into<String>, ) -> ContainerClient
Convert the builder into a ContainerClient
instance.
Sourcepub fn blob_client(
self,
container_name: impl Into<String>,
blob_name: impl Into<String>,
) -> BlobClient
pub fn blob_client( self, container_name: impl Into<String>, blob_name: impl Into<String>, ) -> BlobClient
Convert the builder into a BlobClient
instance.
Sourcepub fn container_lease_client(
self,
container_name: impl Into<String>,
lease_id: LeaseId,
) -> ContainerLeaseClient
pub fn container_lease_client( self, container_name: impl Into<String>, lease_id: LeaseId, ) -> ContainerLeaseClient
Convert the builder into a ContainerLeaseClient
instance.
Sourcepub fn blob_lease_client(
self,
container_name: impl Into<String>,
blob_name: impl Into<String>,
lease_id: LeaseId,
) -> BlobLeaseClient
pub fn blob_lease_client( self, container_name: impl Into<String>, blob_name: impl Into<String>, lease_id: LeaseId, ) -> BlobLeaseClient
Convert the builder into a BlobLeaseClient
instance.
Sourcepub fn cloud_location(self, cloud_location: CloudLocation) -> Self
pub fn cloud_location(self, cloud_location: CloudLocation) -> Self
Set the cloud location.
Sourcepub fn retry(self, retry: impl Into<RetryOptions>) -> Self
pub fn retry(self, retry: impl Into<RetryOptions>) -> Self
Set the retry options.
Sourcepub fn transport(self, transport: impl Into<TransportOptions>) -> Self
pub fn transport(self, transport: impl Into<TransportOptions>) -> Self
Set the transport options.
Sourcepub fn client_options(self, options: impl Into<ClientOptions>) -> Self
pub fn client_options(self, options: impl Into<ClientOptions>) -> Self
Override all of the client options.
Warning!: This overrides all client options that have been previously set on this builder.
Trait Implementations§
Source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
Source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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