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

Indicates that a route is for "any" method.

Indicates that a route is for the DELETE method only.

Indicates that a route is for the GET method only.

Indicates that a route is for the PATCH method only.

Indicates that a route is for the POST method only.

Indicates that a route is for the PUT method only.

Trait Implementations

impl Clone for LightMethod
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for LightMethod
[src]

impl Debug for LightMethod
[src]

Formats the value using the given formatter.

impl Eq for LightMethod
[src]

impl Hash for LightMethod
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for LightMethod
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.