Enum serenity::http::LightMethod
[−]
[src]
pub enum LightMethod { Any, Delete, Get, Patch, Post, Put, }
An method used for ratelimiting special routes.
This is needed because hyper
's Method
enum does not derive Copy.
Variants
Any
Indicates that a route is for "any" method.
Delete
Indicates that a route is for the DELETE
method only.
Get
Indicates that a route is for the GET
method only.
Patch
Indicates that a route is for the PATCH
method only.
Post
Indicates that a route is for the POST
method only.
Put
Indicates that a route is for the PUT
method only.
Trait Implementations
impl Clone for LightMethod
[src]
fn clone(&self) -> LightMethod
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for LightMethod
[src]
impl Debug for LightMethod
[src]
impl Eq for LightMethod
[src]
impl Hash for LightMethod
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more