Enum Route

Source
pub enum Route<'a> {
Show 104 variants Channel { channel_id: ChannelId, }, ChannelInvites { channel_id: ChannelId, }, ChannelMessage { channel_id: ChannelId, message_id: MessageId, }, ChannelMessageCrosspost { channel_id: ChannelId, message_id: MessageId, }, ChannelMessageReaction { channel_id: ChannelId, message_id: MessageId, user_id: UserId, reaction: &'a str, }, ChannelMessageReactionMe { channel_id: ChannelId, message_id: MessageId, reaction: &'a str, }, ChannelMessageReactionEmoji { channel_id: ChannelId, message_id: MessageId, reaction: &'a str, }, ChannelMessageReactions { channel_id: ChannelId, message_id: MessageId, }, ChannelMessages { channel_id: ChannelId, }, ChannelMessagesBulkDelete { channel_id: ChannelId, }, ChannelFollowNews { channel_id: ChannelId, }, ChannelPermission { channel_id: ChannelId, target_id: TargetId, }, ChannelPin { channel_id: ChannelId, message_id: MessageId, }, ChannelPins { channel_id: ChannelId, }, ChannelTyping { channel_id: ChannelId, }, ChannelWebhooks { channel_id: ChannelId, }, ChannelMessageThreads { channel_id: ChannelId, message_id: MessageId, }, ChannelThreads { channel_id: ChannelId, }, ChannelForumPosts { channel_id: ChannelId, }, ChannelThreadMember { channel_id: ChannelId, user_id: UserId, }, ChannelThreadMemberMe { channel_id: ChannelId, }, ChannelThreadMembers { channel_id: ChannelId, }, ChannelArchivedPublicThreads { channel_id: ChannelId, }, ChannelArchivedPrivateThreads { channel_id: ChannelId, }, ChannelJoinedPrivateThreads { channel_id: ChannelId, }, ChannelPollGetAnswerVoters { channel_id: ChannelId, message_id: MessageId, answer_id: AnswerId, }, ChannelPollExpire { channel_id: ChannelId, message_id: MessageId, }, ChannelVoiceStatus { channel_id: ChannelId, }, Gateway, GatewayBot, Guild { guild_id: GuildId, }, GuildAuditLogs { guild_id: GuildId, }, GuildAutomodRule { guild_id: GuildId, rule_id: RuleId, }, GuildAutomodRules { guild_id: GuildId, }, GuildBan { guild_id: GuildId, user_id: UserId, }, GuildBulkBan { guild_id: GuildId, }, GuildBans { guild_id: GuildId, }, GuildChannels { guild_id: GuildId, }, GuildWidget { guild_id: GuildId, }, GuildPreview { guild_id: GuildId, }, GuildEmojis { guild_id: GuildId, }, GuildEmoji { guild_id: GuildId, emoji_id: EmojiId, }, GuildIntegration { guild_id: GuildId, integration_id: IntegrationId, }, GuildIntegrationSync { guild_id: GuildId, integration_id: IntegrationId, }, GuildIntegrations { guild_id: GuildId, }, GuildInvites { guild_id: GuildId, }, GuildMember { guild_id: GuildId, user_id: UserId, }, GuildMemberRole { guild_id: GuildId, user_id: UserId, role_id: RoleId, }, GuildMembers { guild_id: GuildId, }, GuildMembersSearch { guild_id: GuildId, }, GuildMemberMe { guild_id: GuildId, }, GuildMfa { guild_id: GuildId, }, GuildPrune { guild_id: GuildId, }, GuildRegions { guild_id: GuildId, }, GuildRole { guild_id: GuildId, role_id: RoleId, }, GuildRoles { guild_id: GuildId, }, GuildScheduledEvent { guild_id: GuildId, event_id: ScheduledEventId, }, GuildScheduledEvents { guild_id: GuildId, }, GuildScheduledEventUsers { guild_id: GuildId, event_id: ScheduledEventId, }, GuildSticker { guild_id: GuildId, sticker_id: StickerId, }, GuildStickers { guild_id: GuildId, }, GuildVanityUrl { guild_id: GuildId, }, GuildVoiceStates { guild_id: GuildId, user_id: UserId, }, GuildVoiceStateMe { guild_id: GuildId, }, GuildWebhooks { guild_id: GuildId, }, GuildWelcomeScreen { guild_id: GuildId, }, GuildThreadsActive { guild_id: GuildId, }, Guilds, Invite { code: &'a str, }, Oauth2ApplicationCurrent, StatusIncidentsUnresolved, StatusMaintenancesActive, StatusMaintenancesUpcoming, Sticker { sticker_id: StickerId, }, StickerPacks, StickerPack { sticker_pack_id: StickerPackId, }, User { user_id: UserId, }, UserMe, UserMeConnections, UserMeDmChannels, UserMeGuild { guild_id: GuildId, }, UserMeGuildMember { guild_id: GuildId, }, UserMeGuilds, VoiceRegions, Webhook { webhook_id: WebhookId, }, WebhookWithToken { webhook_id: WebhookId, token: &'a str, }, WebhookMessage { webhook_id: WebhookId, token: &'a str, message_id: MessageId, }, WebhookOriginalInteractionResponse { application_id: ApplicationId, token: &'a str, }, WebhookFollowupMessage { application_id: ApplicationId, token: &'a str, message_id: MessageId, }, WebhookFollowupMessages { application_id: ApplicationId, token: &'a str, }, InteractionResponse { interaction_id: InteractionId, token: &'a str, }, Command { application_id: ApplicationId, command_id: CommandId, }, Commands { application_id: ApplicationId, }, GuildCommand { application_id: ApplicationId, guild_id: GuildId, command_id: CommandId, }, GuildCommandPermissions { application_id: ApplicationId, guild_id: GuildId, command_id: CommandId, }, GuildCommands { application_id: ApplicationId, guild_id: GuildId, }, GuildCommandsPermissions { application_id: ApplicationId, guild_id: GuildId, }, Skus { application_id: ApplicationId, }, Emoji { application_id: ApplicationId, emoji_id: EmojiId, }, Emojis { application_id: ApplicationId, }, Entitlement { application_id: ApplicationId, entitlement_id: EntitlementId, }, Entitlements { application_id: ApplicationId, }, StageInstances, StageInstance { channel_id: ChannelId, },
}

Variants§

§

Channel

Fields

§channel_id: ChannelId
§

ChannelInvites

Fields

§channel_id: ChannelId
§

ChannelMessage

Fields

§channel_id: ChannelId
§message_id: MessageId
§

ChannelMessageCrosspost

Fields

§channel_id: ChannelId
§message_id: MessageId
§

ChannelMessageReaction

Fields

§channel_id: ChannelId
§message_id: MessageId
§user_id: UserId
§reaction: &'a str
§

ChannelMessageReactionMe

Fields

§channel_id: ChannelId
§message_id: MessageId
§reaction: &'a str
§

ChannelMessageReactionEmoji

Fields

§channel_id: ChannelId
§message_id: MessageId
§reaction: &'a str
§

ChannelMessageReactions

Fields

§channel_id: ChannelId
§message_id: MessageId
§

ChannelMessages

Fields

§channel_id: ChannelId
§

ChannelMessagesBulkDelete

Fields

§channel_id: ChannelId
§

ChannelFollowNews

Fields

§channel_id: ChannelId
§

ChannelPermission

Fields

§channel_id: ChannelId
§target_id: TargetId
§

ChannelPin

Fields

§channel_id: ChannelId
§message_id: MessageId
§

ChannelPins

Fields

§channel_id: ChannelId
§

ChannelTyping

Fields

§channel_id: ChannelId
§

ChannelWebhooks

Fields

§channel_id: ChannelId
§

ChannelMessageThreads

Fields

§channel_id: ChannelId
§message_id: MessageId
§

ChannelThreads

Fields

§channel_id: ChannelId
§

ChannelForumPosts

Fields

§channel_id: ChannelId
§

ChannelThreadMember

Fields

§channel_id: ChannelId
§user_id: UserId
§

ChannelThreadMemberMe

Fields

§channel_id: ChannelId
§

ChannelThreadMembers

Fields

§channel_id: ChannelId
§

ChannelArchivedPublicThreads

Fields

§channel_id: ChannelId
§

ChannelArchivedPrivateThreads

Fields

§channel_id: ChannelId
§

ChannelJoinedPrivateThreads

Fields

§channel_id: ChannelId
§

ChannelPollGetAnswerVoters

Fields

§channel_id: ChannelId
§message_id: MessageId
§answer_id: AnswerId
§

ChannelPollExpire

Fields

§channel_id: ChannelId
§message_id: MessageId
§

ChannelVoiceStatus

Fields

§channel_id: ChannelId
§

Gateway

§

GatewayBot

§

Guild

Fields

§guild_id: GuildId
§

GuildAuditLogs

Fields

§guild_id: GuildId
§

GuildAutomodRule

Fields

§guild_id: GuildId
§rule_id: RuleId
§

GuildAutomodRules

Fields

§guild_id: GuildId
§

GuildBan

Fields

§guild_id: GuildId
§user_id: UserId
§

GuildBulkBan

Fields

§guild_id: GuildId
§

GuildBans

Fields

§guild_id: GuildId
§

GuildChannels

Fields

§guild_id: GuildId
§

GuildWidget

Fields

§guild_id: GuildId
§

GuildPreview

Fields

§guild_id: GuildId
§

GuildEmojis

Fields

§guild_id: GuildId
§

GuildEmoji

Fields

§guild_id: GuildId
§emoji_id: EmojiId
§

GuildIntegration

Fields

§guild_id: GuildId
§integration_id: IntegrationId
§

GuildIntegrationSync

Fields

§guild_id: GuildId
§integration_id: IntegrationId
§

GuildIntegrations

Fields

§guild_id: GuildId
§

GuildInvites

Fields

§guild_id: GuildId
§

GuildMember

Fields

§guild_id: GuildId
§user_id: UserId
§

GuildMemberRole

Fields

§guild_id: GuildId
§user_id: UserId
§role_id: RoleId
§

GuildMembers

Fields

§guild_id: GuildId
§

GuildMembersSearch

Fields

§guild_id: GuildId
§

GuildMemberMe

Fields

§guild_id: GuildId
§

GuildMfa

Fields

§guild_id: GuildId
§

GuildPrune

Fields

§guild_id: GuildId
§

GuildRegions

Fields

§guild_id: GuildId
§

GuildRole

Fields

§guild_id: GuildId
§role_id: RoleId
§

GuildRoles

Fields

§guild_id: GuildId
§

GuildScheduledEvent

Fields

§guild_id: GuildId
§

GuildScheduledEvents

Fields

§guild_id: GuildId
§

GuildScheduledEventUsers

Fields

§guild_id: GuildId
§

GuildSticker

Fields

§guild_id: GuildId
§sticker_id: StickerId
§

GuildStickers

Fields

§guild_id: GuildId
§

GuildVanityUrl

Fields

§guild_id: GuildId
§

GuildVoiceStates

Fields

§guild_id: GuildId
§user_id: UserId
§

GuildVoiceStateMe

Fields

§guild_id: GuildId
§

GuildWebhooks

Fields

§guild_id: GuildId
§

GuildWelcomeScreen

Fields

§guild_id: GuildId
§

GuildThreadsActive

Fields

§guild_id: GuildId
§

Guilds

§

Invite

Fields

§code: &'a str
§

Oauth2ApplicationCurrent

§

StatusIncidentsUnresolved

§

StatusMaintenancesActive

§

StatusMaintenancesUpcoming

§

Sticker

Fields

§sticker_id: StickerId
§

StickerPacks

§

StickerPack

Fields

§sticker_pack_id: StickerPackId
§

User

Fields

§user_id: UserId
§

UserMe

§

UserMeConnections

§

UserMeDmChannels

§

UserMeGuild

Fields

§guild_id: GuildId
§

UserMeGuildMember

Fields

§guild_id: GuildId
§

UserMeGuilds

§

VoiceRegions

§

Webhook

Fields

§webhook_id: WebhookId
§

WebhookWithToken

Fields

§webhook_id: WebhookId
§token: &'a str
§

WebhookMessage

Fields

§webhook_id: WebhookId
§token: &'a str
§message_id: MessageId
§

WebhookOriginalInteractionResponse

Fields

§application_id: ApplicationId
§token: &'a str
§

WebhookFollowupMessage

Fields

§application_id: ApplicationId
§token: &'a str
§message_id: MessageId
§

WebhookFollowupMessages

Fields

§application_id: ApplicationId
§token: &'a str
§

InteractionResponse

Fields

§interaction_id: InteractionId
§token: &'a str
§

Command

Fields

§application_id: ApplicationId
§command_id: CommandId
§

Commands

Fields

§application_id: ApplicationId
§

GuildCommand

Fields

§application_id: ApplicationId
§guild_id: GuildId
§command_id: CommandId
§

GuildCommandPermissions

Fields

§application_id: ApplicationId
§guild_id: GuildId
§command_id: CommandId
§

GuildCommands

Fields

§application_id: ApplicationId
§guild_id: GuildId
§

GuildCommandsPermissions

Fields

§application_id: ApplicationId
§guild_id: GuildId
§

Skus

Fields

§application_id: ApplicationId
§

Emoji

Fields

§application_id: ApplicationId
§emoji_id: EmojiId
§

Emojis

Fields

§application_id: ApplicationId
§

Entitlement

Fields

§application_id: ApplicationId
§entitlement_id: EntitlementId
§

Entitlements

Fields

§application_id: ApplicationId
§

StageInstances

§

StageInstance

Fields

§channel_id: ChannelId

Implementations§

Source§

impl<'a> Route<'a>

Source

pub fn path(self) -> Cow<'static, str>

Source

pub fn ratelimiting_bucket(&self) -> RatelimitingBucket

Trait Implementations§

Source§

impl<'a> Clone for Route<'a>

Source§

fn clone(&self) -> Route<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Route<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Copy for Route<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Route<'a>

§

impl<'a> RefUnwindSafe for Route<'a>

§

impl<'a> Send for Route<'a>

§

impl<'a> Sync for Route<'a>

§

impl<'a> Unpin for Route<'a>

§

impl<'a> UnwindSafe for Route<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneDebuggableStorage for T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> CloneableStorage for T
where T: Any + Send + Sync + Clone,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DebuggableStorage for T
where T: Any + Send + Sync + Debug,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T