Compile-time checks that an enum or match is written in sorted order
APACHE-2.0 License
Add an #[unsorted] attribute to allow individual items to be ignored (#4, thanks @Juici)
#[remain::sorted]
pub enum Bucket {
ChannelsId(ChannelId),
ChannelsIdInvites(ChannelId),
ChannelsIdMessages(ChannelId),
ChannelsIdMessagesBulkDelete(ChannelId),
ChannelsIdMessagesId(ChannelId),
ChannelsIdMessagesIdDelete(ChannelId),
ChannelsIdMessagesIdReactions(ChannelId),
ChannelsIdMessagesIdReactionsEmoji(ChannelId),
ChannelsIdMessagesIdReactionsEmojiMe(ChannelId),
ChannelsIdMessagesIdReactionsEmojiUserId(ChannelId),
ChannelsIdPermissionsOverwriteId(ChannelId),
ChannelsIdPins(ChannelId),
ChannelsIdPinsMessageId(ChannelId),
ChannelsIdRecipientsUserId(ChannelId),
ChannelsIdTyping(ChannelId),
ChannelsIdWebhooks(ChannelId),
Guilds,
GuildsId(GuildId),
GuildsIdAuditLogs(GuildId),
GuildsIdBans(GuildId),
GuildsIdBansUserId(GuildId),
GuildsIdChannels(GuildId),
GuildsIdEmbed(GuildId),
GuildsIdEmojis(GuildId),
GuildsIdEmojisId(GuildId),
GuildsIdIntegrations(GuildId),
GuildsIdIntegrationsId(GuildId),
GuildsIdIntegrationsIdSync(GuildId),
GuildsIdInvites(GuildId),
GuildsIdMembers(GuildId),
GuildsIdMembersId(GuildId),
GuildsIdMembersIdRolesId(GuildId),
GuildsIdMembersMeNick(GuildId),
GuildsIdPrune(GuildId),
GuildsIdRegions(GuildId),
GuildsIdRoles(GuildId),
GuildsIdRolesId(GuildId),
GuildsIdVanityUrl(GuildId),
GuildsIdWebhooks(GuildId),
InvitesCode,
UsersId,
UsersMe,
UsersMeChannels,
UsersMeConnections,
UsersMeGuilds,
UsersMeGuildsId(GuildId),
VoiceRegions,
WebhooksId(WebhookId),
#[unsorted]
None,
#[doc(hidden)]
__Nonexhaustive,
}