aboutsummaryrefslogtreecommitdiff
path: root/src/utils/builder/create_embed.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-05-14 21:50:17 -0700
committerZeyla Hellyer <[email protected]>2017-05-22 16:44:46 -0700
commit9dae9e67b992cea4c18f1c685f5185abd9428887 (patch)
tree0021934890c7e48183b6a98b65601793dcbc8376 /src/utils/builder/create_embed.rs
parentRemove more remaining selfbot support (diff)
downloadserenity-9dae9e67b992cea4c18f1c685f5185abd9428887.tar.xz
serenity-9dae9e67b992cea4c18f1c685f5185abd9428887.zip
Reasonably derive Debug on items
Diffstat (limited to 'src/utils/builder/create_embed.rs')
-rw-r--r--src/utils/builder/create_embed.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/utils/builder/create_embed.rs b/src/utils/builder/create_embed.rs
index 7c1c606..457a960 100644
--- a/src/utils/builder/create_embed.rs
+++ b/src/utils/builder/create_embed.rs
@@ -33,6 +33,7 @@ use ::utils::Colour;
/// [`Context::send_message`]: ../../client/struct.Context.html#method.send_message
/// [`Embed`]: ../../model/struct.Embed.html
/// [`ExecuteWebhook::embeds`]: struct.ExecuteWebhook.html#method.embeds
+#[derive(Clone, Debug)]
pub struct CreateEmbed(pub Map<String, Value>);
impl CreateEmbed {
@@ -271,7 +272,7 @@ impl From<Embed> for CreateEmbed {
/// [`Embed`]: ../../model/struct.Embed.html
/// [`CreateEmbed::author`]: struct.CreateEmbed.html#method.author
/// [`name`]: #method.name
-#[derive(Default)]
+#[derive(Clone, Debug, Default)]
pub struct CreateEmbedAuthor(pub Map<String, Value>);
impl CreateEmbedAuthor {
@@ -305,6 +306,7 @@ impl CreateEmbedAuthor {
///
/// [`Embed`]: ../../model/struct.Embed.html
/// [`CreateEmbed::field`]: struct.CreateEmbed.html#method.field
+#[derive(Clone, Debug)]
pub struct CreateEmbedField(pub Map<String, Value>);
impl CreateEmbedField {
@@ -348,7 +350,7 @@ impl Default for CreateEmbedField {
///
/// [`Embed`]: ../../model/struct.Embed.html
/// [`CreateEmbed::footer`]: struct.CreateEmbed.html#method.footer
-#[derive(Default)]
+#[derive(Clone, Debug, Default)]
pub struct CreateEmbedFooter(pub Map<String, Value>);
impl CreateEmbedFooter {
@@ -367,6 +369,7 @@ impl CreateEmbedFooter {
}
}
+#[derive(Clone, Debug)]
pub struct Timestamp {
pub ts: String,
}