pub struct Client(/* private fields */);

Implementations§

Source§

impl Client

Source

pub fn get_properties( &self, container_name: impl Into<String>, ) -> RequestBuilder

returns all user-defined metadata and system properties for the specified container. The data returned does not include the container’s list of blobs

Arguments:

  • container_name: The container name.
Source

pub fn create(&self, container_name: impl Into<String>) -> RequestBuilder

creates a new container under the specified account. If the container with the same name already exists, the operation fails

Arguments:

  • container_name: The container name.
Source

pub fn delete(&self, container_name: impl Into<String>) -> RequestBuilder

operation marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection

Arguments:

  • container_name: The container name.
Source

pub fn set_metadata(&self, container_name: impl Into<String>) -> RequestBuilder

operation sets one or more user-defined name-value pairs for the specified container.

Arguments:

  • container_name: The container name.
Source

pub fn get_access_policy( &self, container_name: impl Into<String>, ) -> RequestBuilder

gets the permissions for the specified container. The permissions indicate whether container data may be accessed publicly.

Arguments:

  • container_name: The container name.
Source

pub fn set_access_policy( &self, container_name: impl Into<String>, ) -> RequestBuilder

sets the permissions for the specified container. The permissions indicate whether blobs in a container may be accessed publicly.

Arguments:

  • container_name: The container name.
Source

pub fn restore(&self, container_name: impl Into<String>) -> RequestBuilder

Restores a previously-deleted container.

Arguments:

  • container_name: The container name.
Source

pub fn rename( &self, container_name: impl Into<String>, x_ms_source_container_name: impl Into<String>, ) -> RequestBuilder

Renames an existing container.

Arguments:

  • container_name: The container name.
  • x_ms_source_container_name: Required. Specifies the name of the container to rename.
Source

pub fn submit_batch( &self, container_name: impl Into<String>, body: impl Into<Value>, content_length: i64, content_type: impl Into<String>, ) -> RequestBuilder

The Batch operation allows multiple API calls to be embedded into a single HTTP request.

Arguments:

  • container_name: The container name.
  • body: Initial data
  • content_length: The length of the request.
  • content_type: Required. The value of this header must be multipart/mixed with a batch boundary. Example header value: multipart/mixed; boundary=batch_
Source

pub fn filter_blobs(&self, container_name: impl Into<String>) -> RequestBuilder

The Filter Blobs operation enables callers to list blobs in a container whose tags match a given search expression. Filter blobs searches within the given container.

Arguments:

  • container_name: The container name.
Source

pub fn acquire_lease( &self, container_name: impl Into<String>, x_ms_lease_action: impl Into<String>, ) -> RequestBuilder

[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite

Arguments:

  • container_name: The container name.
  • x_ms_lease_action: Describes what lease action to take.
Source

pub fn release_lease( &self, container_name: impl Into<String>, x_ms_lease_action: impl Into<String>, x_ms_lease_id: impl Into<String>, ) -> RequestBuilder

[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite

Arguments:

  • container_name: The container name.
  • x_ms_lease_action: Describes what lease action to take.
  • x_ms_lease_id: Specifies the current lease ID on the resource.
Source

pub fn renew_lease( &self, container_name: impl Into<String>, x_ms_lease_action: impl Into<String>, x_ms_lease_id: impl Into<String>, ) -> RequestBuilder

[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite

Arguments:

  • container_name: The container name.
  • x_ms_lease_action: Describes what lease action to take.
  • x_ms_lease_id: Specifies the current lease ID on the resource.
Source

pub fn break_lease( &self, container_name: impl Into<String>, x_ms_lease_action: impl Into<String>, ) -> RequestBuilder

[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite

Arguments:

  • container_name: The container name.
  • x_ms_lease_action: Describes what lease action to take.
Source

pub fn change_lease( &self, container_name: impl Into<String>, x_ms_lease_action: impl Into<String>, x_ms_lease_id: impl Into<String>, x_ms_proposed_lease_id: impl Into<String>, ) -> RequestBuilder

[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite

Arguments:

  • container_name: The container name.
  • x_ms_lease_action: Describes what lease action to take.
  • x_ms_lease_id: Specifies the current lease ID on the resource.
  • x_ms_proposed_lease_id: Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.
Source

pub fn list_blob_flat_segment( &self, container_name: impl Into<String>, ) -> RequestBuilder

[Update] The List Blobs operation returns a list of the blobs under the specified container

Arguments:

  • container_name: The container name.
Source

pub fn list_blob_hierarchy_segment( &self, container_name: impl Into<String>, delimiter: impl Into<String>, ) -> RequestBuilder

[Update] The List Blobs operation returns a list of the blobs under the specified container

Arguments:

  • container_name: The container name.
  • delimiter: When the request includes this parameter, the operation returns a BlobPrefix element in the response body that acts as a placeholder for all blobs whose names begin with the same substring up to the appearance of the delimiter character. The delimiter may be a single character or a string.
Source

pub fn get_account_info( &self, container_name: impl Into<String>, ) -> RequestBuilder

Returns the sku name and account kind

Arguments:

  • container_name: The container name.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T