Skip to main content
pub enum MultiPartOperation 
    Init,
    Part,
    Complete,
    Cancel,

Multi-part operation stages for upload/download. Where there is no stage, an Option<MultiPartOperation> is None.

Variants

Init

Initialize a multi-part transfer

Part

Upload/download a single part

Complete

Complete the multi-part transfer

Cancel

Cancel the multi-part transfer

Implementations

Source

pub fn as_str(&self) -> &‘static str

Returns the string value of the operation for API calls.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

The stage’s name in capitals, such as UPLOAD_PART.

Source

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source

fn eq(&self, other: &MultiPartOperation) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.