diff options
author | 2025-01-02 17:48:12 +0000 | |
---|---|---|
committer | 2025-01-02 17:48:12 +0000 | |
commit | 0e5f09b2bd05690f3d28f7076629031fcc2cc6e6 (patch) | |
tree | 29409764a94d570c8d9e929f1751a678355cb6ee /stanza/src/roster.rs | |
parent | 89351e956368ad3112127570ef03dd2547730ce5 (diff) | |
download | luz-0e5f09b2bd05690f3d28f7076629031fcc2cc6e6.tar.gz luz-0e5f09b2bd05690f3d28f7076629031fcc2cc6e6.tar.bz2 luz-0e5f09b2bd05690f3d28f7076629031fcc2cc6e6.zip |
WIP: client
Diffstat (limited to '')
-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 { |