Enum twilight_http::routing::Path [−][src]
#[non_exhaustive] pub enum Path {}Show variants
ApplicationCommand(u64), ApplicationCommandId(u64), ApplicationGuildCommand(u64), ApplicationGuildCommandId(u64), ChannelsId(u64), ChannelsIdInvites(u64), ChannelsIdMessages(u64), ChannelsIdMessagesBulkDelete(u64), ChannelsIdMessagesId(Method, u64), ChannelsIdMessagesIdCrosspost(u64), ChannelsIdMessagesIdReactions(u64), ChannelsIdMessagesIdReactionsUserIdType(u64), ChannelsIdPermissionsOverwriteId(u64), ChannelsIdPins(u64), ChannelsIdPinsMessageId(u64), ChannelsIdRecipients(u64), ChannelsIdTyping(u64), ChannelsIdWebhooks(u64), ChannelsIdFollowers(u64), Gateway, GatewayBot, Guilds, GuildsId(u64), GuildsIdBans(u64), GuildsIdBansId(u64), GuildsIdAuditLogs(u64), GuildsIdBansUserId(u64), GuildsIdChannels(u64), GuildsIdWidget(u64), GuildsIdEmojis(u64), GuildsIdEmojisId(u64), GuildsIdIntegrations(u64), GuildsIdIntegrationsId(u64), GuildsIdIntegrationsIdSync(u64), GuildsIdInvites(u64), GuildsIdMembers(u64), GuildsIdMembersId(u64), GuildsIdMembersIdRolesId(u64), GuildsIdMembersMeNick(u64), GuildsIdMembersSearch(u64), GuildsIdPreview(u64), GuildsIdPrune(u64), GuildsIdRegions(u64), GuildsIdRoles(u64), GuildsIdRolesId(u64), GuildsIdTemplates(u64), GuildsIdTemplatesCode(u64), GuildsIdVanityUrl(u64), GuildsIdVoiceStates(u64), GuildsIdWelcomeScreen(u64), GuildsIdWebhooks(u64), InvitesCode, InteractionCallback(u64), StageInstances, UsersId, OauthApplicationsMe, UsersIdConnections, UsersIdChannels, UsersIdGuilds, UsersIdGuildsId, VoiceRegions, WebhooksIdTokenMessagesId(u64), WebhooksId(u64),
Expand description
An enum representing a path, most useful for ratelimiting implementations.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
ApplicationCommand(u64)
Operating on global commands.
ApplicationCommandId(u64)
Operating on a specific command.
ApplicationGuildCommand(u64)
Operating on commands in a guild.
ApplicationGuildCommandId(u64)
Operating on a specific command in a guild.
ChannelsId(u64)
Operating on a channel.
ChannelsIdInvites(u64)
Operating on a channel’s invites.
ChannelsIdMessages(u64)
Operating on a channel’s messages.
ChannelsIdMessagesBulkDelete(u64)
Operating on a channel’s messages by bulk deleting.
Operating on an individual channel’s message.
ChannelsIdMessagesIdCrosspost(u64)
Crossposting an individual channel’s message.
ChannelsIdMessagesIdReactions(u64)
Operating on an individual channel’s message’s reactions.
ChannelsIdMessagesIdReactionsUserIdType(u64)
Operating on an individual channel’s message’s reactions while specifying the user ID and emoji type.
ChannelsIdPermissionsOverwriteId(u64)
Operating on a channel’s permission overwrites by ID.
ChannelsIdPins(u64)
Operating on a channel’s pins.
ChannelsIdPinsMessageId(u64)
Operating on a channel’s individual pinned message.
ChannelsIdRecipients(u64)
Operating on a group DM’s recipients.
ChannelsIdTyping(u64)
Operating on a channel’s typing indicator.
ChannelsIdWebhooks(u64)
Operating on a channel’s webhooks.
ChannelsIdFollowers(u64)
Operating on a channel’s followers.
Operating with the gateway information.
Operating with the gateway information tailored to the current user.
Operating on the guild resource.
GuildsId(u64)
Operating on one of user’s guilds.
GuildsIdBans(u64)
GuildsIdBansId(u64)
GuildsIdAuditLogs(u64)
GuildsIdBansUserId(u64)
GuildsIdChannels(u64)
GuildsIdWidget(u64)
GuildsIdEmojis(u64)
GuildsIdEmojisId(u64)
GuildsIdIntegrations(u64)
GuildsIdIntegrationsId(u64)
GuildsIdIntegrationsIdSync(u64)
GuildsIdInvites(u64)
GuildsIdMembers(u64)
GuildsIdMembersId(u64)
GuildsIdMembersIdRolesId(u64)
GuildsIdMembersMeNick(u64)
GuildsIdMembersSearch(u64)
GuildsIdPreview(u64)
GuildsIdPrune(u64)
GuildsIdRegions(u64)
GuildsIdRoles(u64)
GuildsIdRolesId(u64)
GuildsIdTemplates(u64)
GuildsIdTemplatesCode(u64)
GuildsIdVanityUrl(u64)
GuildsIdVoiceStates(u64)
GuildsIdWelcomeScreen(u64)
GuildsIdWebhooks(u64)
InteractionCallback(u64)
Operating on an interaction’s callback.
Operating on the state of a guild that the user is in.
Operating on the state of a guild that the user is in.
Operating on the voice regions available to the current user.
WebhooksIdTokenMessagesId(u64)
Operating on a message created by a webhook.
WebhooksId(u64)
Operating on a webhook.
Trait Implementations
Parses a string into a path.
The string may start with a slash (/
), which will be ignored.
Examples
use twilight_http::routing::Path; use std::str::FromStr; assert_eq!(Path::VoiceRegions, Path::from_str("/voice/regions")?); assert_eq!( Path::ChannelsIdMessages(123), Path::from_str("channels/123/messages")?, );
type Err = PathParseError
type Err = PathParseError
The associated error which can be returned from parsing.
Auto Trait Implementations
impl RefUnwindSafe for Path
impl UnwindSafe for Path
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V