pub enum HttpMethod {
Post,
Put,
Patch,
}Expand description
The HTTP method used to send the file in the upload command.
Serialized as an uppercase string ("POST", "PUT" or "PATCH") to match the JavaScript
guest bindings.
Variants§
Post
Send the file with an HTTP POST request. This is the default when no method is given.
Put
Send the file with an HTTP PUT request.
Patch
Send the file with an HTTP PATCH request.
Trait Implementations§
Source§impl Clone for HttpMethod
impl Clone for HttpMethod
Source§impl Debug for HttpMethod
impl Debug for HttpMethod
Source§impl<'de> Deserialize<'de> for HttpMethod
impl<'de> Deserialize<'de> for HttpMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpMethod
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin for HttpMethod
impl UnsafeUnpin for HttpMethod
impl UnwindSafe for HttpMethod
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