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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more