pub enum Method {
None,
Options,
Get,
Post,
Put,
Delete,
Head,
Trace,
Connect,
Patch,
Extension(String),
}
Variants§
Implementations§
source§impl Method
impl Method
pub const NONE: Method = Method::None
pub const SGET: &'static str = "GET"
pub const SPOST: &'static str = "POST"
pub const SPUT: &'static str = "PUT"
pub const SDELETE: &'static str = "DELETE"
pub const SHEAD: &'static str = "HEAD"
pub const SOPTIONS: &'static str = "OPTIONS"
pub const SCONNECT: &'static str = "CONNECT"
pub const SPATCH: &'static str = "PATCH"
pub const STRACE: &'static str = "TRACE"
Trait Implementations§
source§impl PartialEq for Method
impl PartialEq for Method
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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