[][src]Enum serenity::http::routing::Route

pub enum Route {
    ChannelsId(u64),
    ChannelsIdInvites(u64),
    ChannelsIdMessages(u64),
    ChannelsIdMessagesBulkDelete(u64),
    ChannelsIdMessagesId(LightMethodu64),
    ChannelsIdMessagesIdAck(u64),
    ChannelsIdMessagesIdReactions(u64),
    ChannelsIdMessagesIdReactionsUserIdType(u64),
    ChannelsIdPermissionsOverwriteId(u64),
    ChannelsIdPins(u64),
    ChannelsIdPinsMessageId(u64),
    ChannelsIdTyping(u64),
    ChannelsIdWebhooks(u64),
    Gateway,
    GatewayBot,
    Guilds,
    GuildsId(u64),
    GuildsIdBans(u64),
    GuildsIdAuditLogs(u64),
    GuildsIdBansUserId(u64),
    GuildsIdChannels(u64),
    GuildsIdEmbed(u64),
    GuildsIdEmojis(u64),
    GuildsIdEmojisId(u64),
    GuildsIdIntegrations(u64),
    GuildsIdIntegrationsId(u64),
    GuildsIdIntegrationsIdSync(u64),
    GuildsIdInvites(u64),
    GuildsIdMembers(u64),
    GuildsIdMembersId(u64),
    GuildsIdMembersIdRolesId(u64),
    GuildsIdMembersMeNick(u64),
    GuildsIdPrune(u64),
    GuildsIdRegions(u64),
    GuildsIdRoles(u64),
    GuildsIdRolesId(u64),
    GuildsIdVanityUrl(u64),
    GuildsIdWebhooks(u64),
    InvitesCode,
    UsersId,
    UsersMe,
    UsersMeChannels,
    UsersMeGuilds,
    UsersMeGuildsId,
    VoiceRegions,
    WebhooksId(u64),
    None,
}

A representation of all routes registered within the library. These are safe and memory-efficient representations of each path that functions exist for in the http module.

Variants

Route for the /channels/:channel_id path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/invites path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/messages path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/messages/bulk-delete path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/messages/:message_id path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/messages/:message_id/ack path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/messages/:message_id/reactions path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/messages/:message_id/reactions/:reaction/@me path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/permissions/:target_id path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/pins path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/pins/:message_id path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/typing path.

The data is the relevant ChannelId.

Route for the /channels/:channel_id/webhooks path.

The data is the relevant ChannelId.

Route for the /gateway path.

Route for the /gateway/bot path.

Route for the /guilds path.

Route for the /guilds/:guild_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/bans path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/audit-logs path. The data is the relevant GuildId.

Route for the /guilds/:guild_id/bans/:user_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/channels/:channel_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/embed path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/emojis path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/emojis/:emoji_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/integrations path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/integrations/:integration_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/integrations/:integration_id/sync path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/invites path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/members path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/members/:user_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/members/:user_id/roles/:role_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/members/@me/nick path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/prune path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/regions path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/roles path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/roles/:role_id path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/vanity-url path.

The data is the relevant GuildId.

Route for the /guilds/:guild_id/webhooks path.

The data is the relevant GuildId.

Route for the /invites/:code path.

Route for the /users/:user_id path.

Route for the /users/@me path.

Route for the /users/@me/channels path.

Route for the /users/@me/guilds path.

Route for the /users/@me/guilds/:guild_id path.

Route for the /voice/regions path.

Route for the /webhooks/:webhook_id path.

Route where no ratelimit headers are in place (i.e. user account-only routes).

This is a special case, in that if the route is None then pre- and post-hooks are not executed.

Methods

impl Route
[src]

Trait Implementations

impl PartialEq<Route> for Route
[src]

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

This method tests for !=.

impl Clone for Route
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Route
[src]

impl Eq for Route
[src]

impl Debug for Route
[src]

Formats the value using the given formatter. Read more

impl Hash for Route
[src]

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

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

Auto Trait Implementations

impl Send for Route

impl Sync for Route

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any