diff --git a/src/api/channels/reactions.rs b/src/api/channels/reactions.rs index d44a61c..4685993 100644 --- a/src/api/channels/reactions.rs +++ b/src/api/channels/reactions.rs @@ -7,6 +7,7 @@ use crate::{ }; /// Useful metadata for working with [`types::Reaction`], bundled together nicely. +#[derive(Debug, Clone, PartialEq, Eq)] pub struct ReactionMeta { pub message_id: types::Snowflake, pub channel_id: types::Snowflake, diff --git a/src/gateway.rs b/src/gateway.rs index 8f3392a..68205b5 100644 --- a/src/gateway.rs +++ b/src/gateway.rs @@ -329,6 +329,7 @@ impl GatewayHandle { } } +#[derive(Debug)] pub struct Gateway { events: Arc>, heartbeat_handler: HeartbeatHandler, @@ -726,6 +727,7 @@ impl Gateway { /// Handles sending heartbeats to the gateway in another thread #[allow(dead_code)] // FIXME: Remove this, once HeartbeatHandler is used +#[derive(Debug)] struct HeartbeatHandler { /// How ofter heartbeats need to be sent at a minimum pub heartbeat_interval: Duration, diff --git a/src/ratelimiter.rs b/src/ratelimiter.rs index 5ffedb5..ac7642c 100644 --- a/src/ratelimiter.rs +++ b/src/ratelimiter.rs @@ -16,6 +16,7 @@ use crate::{ /// Chorus' request struct. This struct is used to send rate-limited requests to the Spacebar server. /// See for more information. +#[derive(Debug)] pub struct ChorusRequest { pub request: RequestBuilder, pub limit_type: LimitType, diff --git a/src/types/entities/message.rs b/src/types/entities/message.rs index 27a8857..41c4d51 100644 --- a/src/types/entities/message.rs +++ b/src/types/entities/message.rs @@ -124,7 +124,7 @@ pub struct MessageInteraction { pub member: Option>>, } -#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Eq, PartialOrd, Ord)] +#[derive(Debug, Default, PartialEq, Clone, Serialize, Deserialize, Eq, PartialOrd, Ord)] pub struct AllowedMention { parse: Vec, roles: Vec, diff --git a/src/types/interfaces/interaction.rs b/src/types/interfaces/interaction.rs index dd131c8..2aa29fd 100644 --- a/src/types/interfaces/interaction.rs +++ b/src/types/interfaces/interaction.rs @@ -24,6 +24,7 @@ pub enum InteractionType { ApplicationCommand = 2, } +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub enum InteractionResponseType { SelfCommandResponse = 0, Pong = 1, @@ -33,6 +34,7 @@ pub enum InteractionResponseType { AcknowledgeWithSource = 5, } +#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)] pub struct InteractionApplicationCommandCallbackData { pub tts: bool, pub content: String, diff --git a/src/types/schema/message.rs b/src/types/schema/message.rs index d430e2a..4e34910 100644 --- a/src/types/schema/message.rs +++ b/src/types/schema/message.rs @@ -21,6 +21,7 @@ pub struct MessageSendSchema { pub attachments: Option>, } +#[derive(Debug)] pub enum MessageSearchEndpoint { GuildChannel(Snowflake), Channel(Snowflake),