Enum serenity::http::routing::RouteInfo [−][src]
#[non_exhaustive] pub enum RouteInfo<'a> {}Show 141 variants
AddMemberRole { guild_id: u64, role_id: u64, user_id: u64, }, GuildBanUser { guild_id: u64, user_id: u64, delete_message_days: Option<u8>, reason: Option<&'a str>, }, BroadcastTyping { channel_id: u64, }, CreateChannel { guild_id: u64, }, CreateStageInstance, CreatePublicThread { channel_id: u64, message_id: u64, }, CreatePrivateThread { channel_id: u64, }, CreateEmoji { guild_id: u64, }, CreateFollowupMessage { application_id: u64, interaction_token: &'a str, }, CreateGlobalApplicationCommand { application_id: u64, }, CreateGlobalApplicationCommands { application_id: u64, }, CreateGuild, CreateGuildApplicationCommand { application_id: u64, guild_id: u64, }, CreateGuildApplicationCommands { application_id: u64, guild_id: u64, }, CreateGuildIntegration { guild_id: u64, integration_id: u64, }, CreateInteractionResponse { interaction_id: u64, interaction_token: &'a str, }, CreateInvite { channel_id: u64, }, CreateMessage { channel_id: u64, }, CreatePermission { channel_id: u64, target_id: u64, }, CreatePrivateChannel, CreateReaction { channel_id: u64, message_id: u64, reaction: &'a str, }, CreateRole { guild_id: u64, }, CreateWebhook { channel_id: u64, }, DeleteChannel { channel_id: u64, }, DeleteStageInstance { channel_id: u64, }, DeleteEmoji { guild_id: u64, emoji_id: u64, }, DeleteFollowupMessage { application_id: u64, interaction_token: &'a str, message_id: u64, }, DeleteGlobalApplicationCommand { application_id: u64, command_id: u64, }, DeleteGuild { guild_id: u64, }, DeleteGuildApplicationCommand { application_id: u64, guild_id: u64, command_id: u64, }, DeleteGuildIntegration { guild_id: u64, integration_id: u64, }, DeleteInvite { code: &'a str, }, DeleteMessage { channel_id: u64, message_id: u64, }, DeleteMessages { channel_id: u64, }, DeleteMessageReactions { channel_id: u64, message_id: u64, }, DeleteMessageReactionEmoji { channel_id: u64, message_id: u64, reaction: &'a str, }, DeleteOriginalInteractionResponse { application_id: u64, interaction_token: &'a str, }, DeletePermission { channel_id: u64, target_id: u64, }, DeleteReaction { channel_id: u64, message_id: u64, user: &'a str, reaction: &'a str, }, DeleteRole { guild_id: u64, role_id: u64, }, DeleteWebhook { webhook_id: u64, }, DeleteWebhookWithToken { token: &'a str, webhook_id: u64, }, DeleteWebhookMessage { token: &'a str, webhook_id: u64, message_id: u64, }, EditChannel { channel_id: u64, }, EditStageInstance { channel_id: u64, }, EditEmoji { guild_id: u64, emoji_id: u64, }, EditFollowupMessage { application_id: u64, interaction_token: &'a str, message_id: u64, }, EditGlobalApplicationCommand { application_id: u64, command_id: u64, }, EditGuild { guild_id: u64, }, EditGuildApplicationCommand { application_id: u64, guild_id: u64, command_id: u64, }, EditGuildApplicationCommandPermission { application_id: u64, guild_id: u64, command_id: u64, }, EditGuildApplicationCommandsPermissions { application_id: u64, guild_id: u64, }, EditGuildChannels { guild_id: u64, }, EditGuildWidget { guild_id: u64, }, EditGuildWelcomeScreen { guild_id: u64, }, EditMember { guild_id: u64, user_id: u64, }, EditMessage { channel_id: u64, message_id: u64, }, CrosspostMessage { channel_id: u64, message_id: u64, }, EditMemberMe { guild_id: u64, }, EditNickname { guild_id: u64, }, GetOriginalInteractionResponse { application_id: u64, interaction_token: &'a str, }, EditOriginalInteractionResponse { application_id: u64, interaction_token: &'a str, }, EditProfile, EditRole { guild_id: u64, role_id: u64, }, EditRolePosition { guild_id: u64, }, EditVoiceState { guild_id: u64, user_id: u64, }, EditVoiceStateMe { guild_id: u64, }, EditWebhook { webhook_id: u64, }, EditWebhookWithToken { token: &'a str, webhook_id: u64, }, EditWebhookMessage { token: &'a str, webhook_id: u64, message_id: u64, }, ExecuteWebhook { token: &'a str, wait: bool, webhook_id: u64, }, JoinThread { channel_id: u64, }, LeaveThread { channel_id: u64, }, AddThreadMember { channel_id: u64, user_id: u64, }, RemoveThreadMember { channel_id: u64, user_id: u64, }, GetActiveMaintenance, GetAuditLogs { action_type: Option<u8>, before: Option<u64>, guild_id: u64, limit: Option<u8>, user_id: Option<u64>, }, GetBans { guild_id: u64, }, GetBotGateway, GetChannel { channel_id: u64, }, GetChannelInvites { channel_id: u64, }, GetChannelWebhooks { channel_id: u64, }, GetChannels { guild_id: u64, }, GetStageInstance { channel_id: u64, }, GetChannelThreadMembers { channel_id: u64, }, GetChannelActiveThreads { channel_id: u64, }, GetChannelArchivedPublicThreads { channel_id: u64, before: Option<u64>, limit: Option<u64>, }, GetChannelArchivedPrivateThreads { channel_id: u64, before: Option<u64>, limit: Option<u64>, }, GetChannelJoinedPrivateArchivedThreads { channel_id: u64, before: Option<u64>, limit: Option<u64>, }, GetCurrentApplicationInfo, GetCurrentUser, GetEmojis { guild_id: u64, }, GetEmoji { guild_id: u64, emoji_id: u64, }, GetGateway, GetGlobalApplicationCommands { application_id: u64, }, GetGlobalApplicationCommand { application_id: u64, command_id: u64, }, GetGuild { guild_id: u64, }, GetGuildWithCounts { guild_id: u64, }, GetGuildApplicationCommands { application_id: u64, guild_id: u64, }, GetGuildApplicationCommand { application_id: u64, guild_id: u64, command_id: u64, }, GetGuildApplicationCommandsPermissions { application_id: u64, guild_id: u64, }, GetGuildApplicationCommandPermissions { application_id: u64, guild_id: u64, command_id: u64, }, GetGuildWidget { guild_id: u64, }, GetGuildPreview { guild_id: u64, }, GetGuildWelcomeScreen { guild_id: u64, }, GetGuildIntegrations { guild_id: u64, }, GetGuildInvites { guild_id: u64, }, GetGuildMembers { after: Option<u64>, limit: Option<u64>, guild_id: u64, }, GetGuildPruneCount { days: u64, guild_id: u64, }, GetGuildRegions { guild_id: u64, }, GetGuildRoles { guild_id: u64, }, GetGuildVanityUrl { guild_id: u64, }, GetGuildWebhooks { guild_id: u64, }, GetGuilds { after: Option<u64>, before: Option<u64>, limit: u64, }, GetInvite { code: &'a str, stats: bool, }, GetMember { guild_id: u64, user_id: u64, }, GetMessage { channel_id: u64, message_id: u64, }, GetMessages { channel_id: u64, query: String, }, GetPins { channel_id: u64, }, GetReactionUsers { after: Option<u64>, channel_id: u64, limit: u8, message_id: u64, reaction: String, }, GetUnresolvedIncidents, GetUpcomingMaintenances, GetUser { user_id: u64, }, GetUserConnections, GetUserDmChannels, GetVoiceRegions, GetWebhook { webhook_id: u64, }, GetWebhookWithToken { token: &'a str, webhook_id: u64, }, KickMember { guild_id: u64, user_id: u64, reason: &'a str, }, LeaveGroup { group_id: u64, }, LeaveGuild { guild_id: u64, }, PinMessage { channel_id: u64, message_id: u64, }, RemoveBan { guild_id: u64, user_id: u64, }, RemoveMemberRole { guild_id: u64, role_id: u64, user_id: u64, }, SearchGuildMembers { guild_id: u64, query: &'a str, limit: Option<u64>, }, StartGuildPrune { days: u64, guild_id: u64, }, StartIntegrationSync { guild_id: u64, integration_id: u64, }, StatusIncidentsUnresolved, StatusMaintenancesActive, StatusMaintenancesUpcoming, UnpinMessage { channel_id: u64, message_id: u64, },
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fields of GuildBanUser
Fields of BroadcastTyping
channel_id: u64
Fields of CreateChannel
guild_id: u64
Fields of CreatePrivateThread
channel_id: u64
Fields of CreateEmoji
guild_id: u64
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.Fields of CreateGlobalApplicationCommand
application_id: u64
This is supported on crate feature
unstable_discord_api
only.Fields of CreateGlobalApplicationCommands
application_id: u64
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.Fields of CreateInvite
channel_id: u64
Fields of CreateMessage
channel_id: u64
Fields of CreateRole
guild_id: u64
Fields of CreateWebhook
channel_id: u64
Fields of DeleteChannel
channel_id: u64
Fields of DeleteStageInstance
channel_id: u64
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.Fields of DeleteGuild
guild_id: u64
This is supported on crate feature
unstable_discord_api
only.Fields of DeleteInvite
code: &'a str
Fields of DeleteMessages
channel_id: u64
This is supported on crate feature
unstable_discord_api
only.Fields of DeleteWebhook
webhook_id: u64
Fields of EditChannel
channel_id: u64
Fields of EditStageInstance
channel_id: u64
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.Fields of EditGuild
guild_id: u64
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.Fields of EditGuildChannels
guild_id: u64
Fields of EditGuildWidget
guild_id: u64
Fields of EditGuildWelcomeScreen
guild_id: u64
Fields of EditMemberMe
guild_id: u64
Fields of EditNickname
guild_id: u64
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.Fields of EditRolePosition
guild_id: u64
Fields of EditVoiceStateMe
guild_id: u64
Fields of EditWebhook
webhook_id: u64
Fields of JoinThread
channel_id: u64
Fields of LeaveThread
channel_id: u64
Fields of GetAuditLogs
Fields of GetBans
guild_id: u64
Fields of GetChannel
channel_id: u64
Fields of GetChannelInvites
channel_id: u64
Fields of GetChannelWebhooks
channel_id: u64
Fields of GetChannels
guild_id: u64
Fields of GetStageInstance
channel_id: u64
Fields of GetChannelThreadMembers
channel_id: u64
Fields of GetChannelActiveThreads
channel_id: u64
Fields of GetChannelJoinedPrivateArchivedThreads
Fields of GetEmojis
guild_id: u64
This is supported on crate feature
unstable_discord_api
only.Fields of GetGlobalApplicationCommands
application_id: u64
This is supported on crate feature
unstable_discord_api
only.Fields of GetGuild
guild_id: u64
Fields of GetGuildWithCounts
guild_id: u64
This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.This is supported on crate feature
unstable_discord_api
only.Fields of GetGuildWidget
guild_id: u64
Fields of GetGuildPreview
guild_id: u64
Fields of GetGuildWelcomeScreen
guild_id: u64
Fields of GetGuildIntegrations
guild_id: u64
Fields of GetGuildInvites
guild_id: u64
Fields of GetGuildRegions
guild_id: u64
Fields of GetGuildRoles
guild_id: u64
Fields of GetGuildVanityUrl
guild_id: u64
Fields of GetGuildWebhooks
guild_id: u64
Fields of GetPins
channel_id: u64
Fields of GetUser
user_id: u64
Fields of GetWebhook
webhook_id: u64
Fields of LeaveGroup
group_id: u64
Fields of LeaveGuild
guild_id: u64
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for RouteInfo<'a>
impl<'a> UnwindSafe for RouteInfo<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self