Enum tusk_rs::reqres::RequestType
source · pub enum RequestType {
Get,
Post,
Put,
Patch,
Delete,
Any,
Options,
}
Variants§
Implementations§
source§impl RequestType
impl RequestType
pub fn type_for_method(method: &str) -> RequestType
pub fn is_any(&self) -> bool
Trait Implementations§
source§impl Debug for RequestType
impl Debug for RequestType
source§impl Display for RequestType
impl Display for RequestType
source§impl PartialEq for RequestType
impl PartialEq for RequestType
source§fn eq(&self, other: &RequestType) -> bool
fn eq(&self, other: &RequestType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestType
Auto Trait Implementations§
impl Freeze for RequestType
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnwindSafe for RequestType
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