diff options
Diffstat (limited to 'stanza/src/client/presence.rs')
-rw-r--r-- | stanza/src/client/presence.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/stanza/src/client/presence.rs b/stanza/src/client/presence.rs index dd14bff..5354966 100644 --- a/stanza/src/client/presence.rs +++ b/stanza/src/client/presence.rs @@ -8,6 +8,7 @@ use peanuts::{ use super::{error::Error, XMLNS}; +#[derive(Debug)] pub struct Presence { from: Option<JID>, id: Option<String>, @@ -70,7 +71,7 @@ impl IntoElement for Presence { pub enum Other {} -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Debug)] pub enum PresenceType { Error, Probe, @@ -112,7 +113,7 @@ impl ToString for PresenceType { } } -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Debug)] pub enum Show { Away, Chat, @@ -160,7 +161,7 @@ impl ToString for Show { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Status { lang: Option<String>, status: String1024, @@ -188,7 +189,7 @@ impl IntoElement for Status { // TODO: enforce? /// minLength 1 maxLength 1024 -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct String1024(pub String); impl FromStr for String1024 { @@ -206,7 +207,7 @@ impl ToString for String1024 { } // xs:byte -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Debug)] pub struct Priority(pub i8); impl FromElement for Priority { |