pub enum HttpMethod {
GET,
POST,
HEAD,
}๐Deprecated since 0.18.0: The
api::management_canister::http_request module is deprecated. Please use the management_canister module at the crate root.Expand description
HTTP method.
Currently support following methods.
Variantsยง
GET
๐Deprecated since 0.18.0: The
api::management_canister::http_request module is deprecated. Please use the management_canister module at the crate root.GET
POST
๐Deprecated since 0.18.0: The
api::management_canister::http_request module is deprecated. Please use the management_canister module at the crate root.POST
HEAD
๐Deprecated since 0.18.0: The
api::management_canister::http_request module is deprecated. Please use the management_canister module at the crate root.HEAD
Trait Implementationsยง
Sourceยงimpl CandidType for HttpMethod
impl CandidType for HttpMethod
Sourceยงimpl Clone for HttpMethod
impl Clone for HttpMethod
Sourceยงfn clone(&self) -> HttpMethod
fn clone(&self) -> HttpMethod
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for HttpMethod
impl Debug for HttpMethod
Sourceยงimpl Default for HttpMethod
impl Default for HttpMethod
Sourceยงfn default() -> HttpMethod
fn default() -> HttpMethod
Returns the โdefault valueโ for a type. Read more
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
Sourceยงimpl Hash for HttpMethod
impl Hash for HttpMethod
Sourceยงimpl Ord for HttpMethod
impl Ord for HttpMethod
Sourceยงfn cmp(&self, other: &HttpMethod) -> Ordering
fn cmp(&self, other: &HttpMethod) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for HttpMethod
impl PartialEq for HttpMethod
Sourceยงimpl PartialOrd for HttpMethod
impl PartialOrd for HttpMethod
Sourceยงimpl Serialize for HttpMethod
impl Serialize for HttpMethod
impl Copy for HttpMethod
impl Eq for HttpMethod
impl StructuralPartialEq for HttpMethod
Auto Trait Implementationsยง
impl Freeze for HttpMethod
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin 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