diff options
Diffstat (limited to 'stanza/src/roster.rs')
-rw-r--r-- | stanza/src/roster.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stanza/src/roster.rs b/stanza/src/roster.rs index b49fcc3..9209fad 100644 --- a/stanza/src/roster.rs +++ b/stanza/src/roster.rs @@ -8,6 +8,7 @@ use peanuts::{ pub const XMLNS: &str = "jabber:iq:roster"; +#[derive(Debug, Clone)] pub struct Query { ver: Option<String>, items: Vec<Item>, @@ -33,7 +34,7 @@ impl IntoElement for Query { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Item { approved: Option<bool>, ask: bool, @@ -95,7 +96,7 @@ impl IntoElement for Item { } } -#[derive(Default, Clone, Copy)] +#[derive(Default, Clone, Copy, Debug)] pub enum Subscription { Both, From, @@ -132,7 +133,7 @@ impl ToString for Subscription { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Group(Option<String>); impl FromElement for Group { |