#[non_exhaustive]pub enum UploadMethod {
Post,
Put,
Delete,
}Expand description
The method of an upload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Post
POST, which sends the body.
This is the default.
Put
PUT, which sends the body.
The retry and the redirect rules of Post
apply.
Delete
DELETE, which sends no body.
The request takes an empty UploadBody::bytes. Any other body fails
the upload before admission with Error::Fetch.
Trait Implementations§
Source§impl Clone for UploadMethod
impl Clone for UploadMethod
impl Copy for UploadMethod
Source§impl Debug for UploadMethod
impl Debug for UploadMethod
Source§impl Default for UploadMethod
impl Default for UploadMethod
impl Eq for UploadMethod
Source§impl PartialEq for UploadMethod
impl PartialEq for UploadMethod
impl StructuralPartialEq for UploadMethod
Auto Trait Implementations§
impl Forget for UploadMethod
impl Freeze for UploadMethod
impl Move for UploadMethod
impl RefUnwindSafe for UploadMethod
impl Send for UploadMethod
impl Sync for UploadMethod
impl Unpin for UploadMethod
impl UnsafeUnpin for UploadMethod
impl UnwindSafe for UploadMethod
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.