pub enum Method {
Get,
Head,
Post,
Put,
Patch,
Delete,
}Expand description
The HTTP methods a REST call to GitHub is made with.
A closed set rather than a string: a record cannot then carry a method that is not one,
and a misspelling is refused by Method::parse where it happens rather than quietly
counted as a write. It is this crate’s own enum rather than an HTTP client’s, so which
client a caller sends its own requests with stays the caller’s business.
Variants§
Implementations§
Trait Implementations§
impl Copy for Method
impl Eq for Method
Source§impl Ord for Method
impl Ord for Method
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Method
impl PartialOrd for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin 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