async_proto/impls/
serenity.rs1use {
2 std::num::NonZeroU64,
3 serenity::model::id::*,
4 async_proto_derive::impl_protocol_for,
5};
6
7impl_protocol_for! {
8 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
9 #[async_proto(via = NonZeroU64, clone)]
10 type AttachmentId;
11
12 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
13 #[async_proto(via = NonZeroU64, clone)]
14 type ApplicationId;
15
16 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
17 #[async_proto(via = NonZeroU64, clone)]
18 type ChannelId;
19
20 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
21 #[async_proto(via = NonZeroU64, clone)]
22 type EmojiId;
23
24 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
25 #[async_proto(via = NonZeroU64, clone)]
26 type GenericId;
27
28 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
29 #[async_proto(via = NonZeroU64, clone)]
30 type GuildId;
31
32 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
33 #[async_proto(via = NonZeroU64, clone)]
34 type IntegrationId;
35
36 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
37 #[async_proto(via = NonZeroU64, clone)]
38 type MessageId;
39
40 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
41 #[async_proto(via = NonZeroU64, clone)]
42 type RoleId;
43
44 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
45 #[async_proto(via = NonZeroU64, clone)]
46 type ScheduledEventId;
47
48 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
49 #[async_proto(via = NonZeroU64, clone)]
50 type StickerId;
51
52 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
53 #[async_proto(via = NonZeroU64, clone)]
54 type StickerPackId;
55
56 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
57 #[async_proto(via = NonZeroU64, clone)]
58 type StickerPackBannerId;
59
60 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
61 #[async_proto(via = NonZeroU64, clone)]
62 type SkuId;
63
64 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
65 #[async_proto(via = NonZeroU64, clone)]
66 type UserId;
67
68 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
69 #[async_proto(via = NonZeroU64, clone)]
70 type WebhookId;
71
72 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
73 #[async_proto(via = NonZeroU64, clone)]
74 type AuditLogEntryId;
75
76 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
77 #[async_proto(via = NonZeroU64, clone)]
78 type InteractionId;
79
80 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
81 #[async_proto(via = NonZeroU64, clone)]
82 type CommandId;
83
84 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
85 #[async_proto(via = NonZeroU64, clone)]
86 type CommandPermissionId;
87
88 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
89 #[async_proto(via = NonZeroU64, clone)]
90 type CommandVersionId;
91
92 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
93 #[async_proto(via = NonZeroU64, clone)]
94 type TargetId;
95
96 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
97 #[async_proto(via = NonZeroU64, clone)]
98 type StageInstanceId;
99
100 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
101 #[async_proto(via = NonZeroU64, clone)]
102 type RuleId;
103
104 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
105 #[async_proto(via = NonZeroU64, clone)]
106 type ForumTagId;
107
108 #[async_proto(attr(cfg_attr(docsrs, doc(cfg(feature = "serenity")))))]
109 #[async_proto(via = NonZeroU64, clone)]
110 type EntitlementId;
111}