Enum serenity::http::ratelimiting::Route
[−]
[src]
pub enum Route {
ChannelsId(u64),
ChannelsIdInvites(u64),
ChannelsIdMessages(u64),
ChannelsIdMessagesBulkDelete(u64),
ChannelsIdMessagesId(LightMethod, u64),
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),
GuildsIdWebhooks(u64),
InvitesCode,
UsersId,
UsersMe,
UsersMeChannels,
UsersMeGuilds,
UsersMeGuildsId,
VoiceRegions,
WebhooksId,
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
ChannelsId(u64)Route for the /channels/:channel_id path.
The data is the relevant ChannelId.
ChannelsIdInvites(u64)Route for the /channels/:channel_id/invites path.
The data is the relevant ChannelId.
ChannelsIdMessages(u64)Route for the /channels/:channel_id/messages path.
The data is the relevant ChannelId.
ChannelsIdMessagesBulkDelete(u64)Route for the /channels/:channel_id/messages/bulk-delete path.
The data is the relevant ChannelId.
ChannelsIdMessagesId(LightMethod, u64)Route for the /channels/:channel_id/messages/:message_id path.
The data is the relevant ChannelId.
ChannelsIdMessagesIdAck(u64)Route for the /channels/:channel_id/messages/:message_id/ack path.
The data is the relevant ChannelId.
ChannelsIdMessagesIdReactions(u64)Route for the /channels/:channel_id/messages/:message_id/reactions
path.
The data is the relevant ChannelId.
ChannelsIdMessagesIdReactionsUserIdType(u64)Route for the
/channels/:channel_id/messages/:message_id/reactions/:reaction/@me
path.
The data is the relevant ChannelId.
ChannelsIdPermissionsOverwriteId(u64)Route for the /channels/:channel_id/permissions/:target_id path.
The data is the relevant ChannelId.
ChannelsIdPins(u64)Route for the /channels/:channel_id/pins path.
The data is the relevant ChannelId.
ChannelsIdPinsMessageId(u64)Route for the /channels/:channel_id/pins/:message_id path.
The data is the relevant ChannelId.
ChannelsIdTyping(u64)Route for the /channels/:channel_id/typing path.
The data is the relevant ChannelId.
ChannelsIdWebhooks(u64)Route for the /channels/:channel_id/webhooks path.
The data is the relevant ChannelId.
GatewayRoute for the /gateway path.
GatewayBotRoute for the /gateway/bot path.
GuildsRoute for the /guilds path.
GuildsId(u64)Route for the /guilds/:guild_id path.
The data is the relevant GuildId.
GuildsIdBans(u64)Route for the /guilds/:guild_id/bans path.
The data is the relevant GuildId.
GuildsIdAuditLogs(u64)Route for the /guilds/:guild_id/audit-logs path.
The data is the relevant GuildId.
GuildsIdBansUserId(u64)Route for the /guilds/:guild_id/bans/:user_id path.
The data is the relevant GuildId.
GuildsIdChannels(u64)Route for the /guilds/:guild_id/channels/:channel_id path.
The data is the relevant GuildId.
GuildsIdEmbed(u64)Route for the /guilds/:guild_id/embed path.
The data is the relevant GuildId.
GuildsIdEmojis(u64)Route for the /guilds/:guild_id/emojis path.
The data is the relevant GuildId.
GuildsIdEmojisId(u64)Route for the /guilds/:guild_id/emojis/:emoji_id path.
The data is the relevant GuildId.
GuildsIdIntegrations(u64)Route for the /guilds/:guild_id/integrations path.
The data is the relevant GuildId.
GuildsIdIntegrationsId(u64)Route for the /guilds/:guild_id/integrations/:integration_id path.
The data is the relevant GuildId.
GuildsIdIntegrationsIdSync(u64)Route for the /guilds/:guild_id/integrations/:integration_id/sync
path.
The data is the relevant GuildId.
GuildsIdInvites(u64)Route for the /guilds/:guild_id/invites path.
The data is the relevant GuildId.
GuildsIdMembers(u64)Route for the /guilds/:guild_id/members path.
The data is the relevant GuildId.
GuildsIdMembersId(u64)Route for the /guilds/:guild_id/members/:user_id path.
The data is the relevant GuildId.
GuildsIdMembersIdRolesId(u64)Route for the /guilds/:guild_id/members/:user_id/roles/:role_id path.
The data is the relevant GuildId.
GuildsIdMembersMeNick(u64)Route for the /guilds/:guild_id/members/@me/nick path.
The data is the relevant GuildId.
GuildsIdPrune(u64)Route for the /guilds/:guild_id/prune path.
The data is the relevant GuildId.
GuildsIdRegions(u64)Route for the /guilds/:guild_id/regions path.
The data is the relevant GuildId.
GuildsIdRoles(u64)Route for the /guilds/:guild_id/roles path.
The data is the relevant GuildId.
GuildsIdRolesId(u64)Route for the /guilds/:guild_id/roles/:role_id path.
The data is the relevant GuildId.
GuildsIdWebhooks(u64)Route for the /guilds/:guild_id/webhooks path.
The data is the relevant GuildId.
InvitesCodeRoute for the /invites/:code path.
UsersIdRoute for the /users/:user_id path.
UsersMeRoute for the /users/@me path.
UsersMeChannelsRoute for the /users/@me/channels path.
UsersMeGuildsRoute for the /users/@me/guilds path.
UsersMeGuildsIdRoute for the /users/@me/guilds/:guild_id path.
VoiceRegionsRoute for the /voice/regions path.
WebhooksIdRoute for the /webhooks/:webhook_id path.
NoneRoute 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.
Trait Implementations
impl Clone for Route[src]
fn clone(&self) -> Route[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 Route[src]
impl Debug for Route[src]
impl Eq for Route[src]
impl Hash for Route[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