diff options
Diffstat (limited to 'stanza/src/client/message.rs')
-rw-r--r-- | stanza/src/client/message.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/stanza/src/client/message.rs b/stanza/src/client/message.rs index b9d995f..2337d7b 100644 --- a/stanza/src/client/message.rs +++ b/stanza/src/client/message.rs @@ -8,6 +8,7 @@ use peanuts::{ use super::XMLNS; +#[derive(Debug)] pub struct Message { from: Option<JID>, id: Option<String>, @@ -69,7 +70,7 @@ impl IntoElement for Message { } } -#[derive(Default, PartialEq, Eq, Copy, Clone)] +#[derive(Default, PartialEq, Eq, Copy, Clone, Debug)] pub enum MessageType { Chat, Error, @@ -106,7 +107,7 @@ impl ToString for MessageType { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Body { lang: Option<String>, body: Option<String>, @@ -132,7 +133,7 @@ impl IntoElement for Body { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Subject { lang: Option<String>, subject: Option<String>, @@ -158,7 +159,7 @@ impl IntoElement for Subject { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Thread { parent: Option<String>, thread: Option<String>, |