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
AnyIndicates that a route is for "any" method.
DeleteIndicates that a route is for the DELETE method only.
GetIndicates that a route is for the GET method only.
PatchIndicates that a route is for the PATCH method only.
PostIndicates that a route is for the POST method only.
PutIndicates that a route is for the PUT method only.
Trait Implementations
impl Clone for LightMethod[src]
fn clone(&self) -> LightMethod[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
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)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more