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

Implementations§

source§

impl Client

source

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

The Upload Block Blob operation updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put Blob; the content of the existing blob is overwritten with the content of the new blob. To perform a partial update of the content of a block blob, use the Put Block List operation.

Arguments:

  • container_name: The container name.
  • blob: The blob name.
  • x_ms_blob_type: Specifies the type of blob to create: block blob, page blob, or append blob.
  • body: Initial data
  • content_length: The length of the request.
source

pub fn put_blob_from_url( &self, container_name: impl Into<String>, blob: impl Into<String>, x_ms_blob_type: impl Into<String>, content_length: i64, x_ms_copy_source: impl Into<String>, ) -> RequestBuilder

The Put Blob from URL operation creates a new Block Blob where the contents of the blob are read from a given URL. This API is supported beginning with the 2020-04-08 version. Partial updates are not supported with Put Blob from URL; the content of an existing blob is overwritten with the content of the new blob. To perform partial updates to a block blob’s contents using a source URL, use the Put Block from URL API in conjunction with Put Block List.

Arguments:

  • container_name: The container name.
  • blob: The blob name.
  • x_ms_blob_type: Specifies the type of blob to create: block blob, page blob, or append blob.
  • content_length: The length of the request.
  • x_ms_copy_source: Specifies the name of the source page blob snapshot. This value is a URL of up to 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would appear in a request URI. The source blob must either be public or must be authenticated via a shared access signature.
source

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

The Stage Block operation creates a new block to be committed as part of a blob

Arguments:

  • container_name: The container name.
  • blob: The blob name.
  • blockid: A valid Base64 string value that identifies the block. Prior to encoding, the string must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified for the blockid parameter must be the same size for each block.
  • content_length: The length of the request.
  • body: Initial data
source

pub fn stage_block_from_url( &self, container_name: impl Into<String>, blob: impl Into<String>, blockid: impl Into<String>, content_length: i64, x_ms_copy_source: impl Into<String>, ) -> RequestBuilder

The Stage Block operation creates a new block to be committed as part of a blob where the contents are read from a URL.

Arguments:

  • container_name: The container name.
  • blob: The blob name.
  • blockid: A valid Base64 string value that identifies the block. Prior to encoding, the string must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified for the blockid parameter must be the same size for each block.
  • content_length: The length of the request.
  • x_ms_copy_source: Specify a URL to the copy source.
source

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

The Get Block List operation retrieves the list of blocks that have been uploaded as part of a block blob

Arguments:

  • container_name: The container name.
  • blob: The blob name.
  • blocklisttype: Specifies whether to return the list of committed blocks, the list of uncommitted blocks, or both lists together.
source

pub fn commit_block_list( &self, container_name: impl Into<String>, blob: impl Into<String>, blocks: impl Into<BlockLookupList>, ) -> RequestBuilder

The Commit Block List operation writes a blob by specifying the list of block IDs that make up the blob. In order to be written as part of a blob, a block must have been successfully written to the server in a prior Put Block operation. You can call Put Block List to update a blob by uploading only those blocks that have changed, then committing the new and existing blocks together. You can do this by specifying whether to commit a block from the committed block list or from the uncommitted block list, or to commit the most recently uploaded version of the block, whichever list it may belong to.

Arguments:

  • container_name: The container name.
  • blob: The blob name.
  • blocks: Blob Blocks.

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