diff options
author | 2025-02-18 06:14:43 +0000 | |
---|---|---|
committer | 2025-02-18 06:14:43 +0000 | |
commit | 5dd488550f9959914d16bde9269284ebd043e0e6 (patch) | |
tree | 3201c93bb0a457526f62139501e697287b2db9a1 /stanza | |
parent | 68a7d136705133dc5d3a5d43b9ff4da28eeb6d5b (diff) | |
download | luz-5dd488550f9959914d16bde9269284ebd043e0e6.tar.gz luz-5dd488550f9959914d16bde9269284ebd043e0e6.tar.bz2 luz-5dd488550f9959914d16bde9269284ebd043e0e6.zip |
WIP: roster retrieval
Diffstat (limited to 'stanza')
-rw-r--r-- | stanza/src/roster.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/stanza/src/roster.rs b/stanza/src/roster.rs index ec83403..0181193 100644 --- a/stanza/src/roster.rs +++ b/stanza/src/roster.rs @@ -37,16 +37,16 @@ impl IntoElement for Query { #[derive(Clone, Debug)] pub struct Item { /// signals subscription pre-approval (server only) - approved: Option<bool>, + pub approved: Option<bool>, /// signals subscription sub-states (server only) - ask: bool, + pub ask: bool, /// uniquely identifies item - jid: JID, + pub jid: JID, /// handle that is determined by user, not contact - name: Option<String>, + pub name: Option<String>, /// state of the presence subscription - subscription: Option<Subscription>, - groups: Vec<Group>, + pub subscription: Option<Subscription>, + pub groups: Vec<Group>, } impl FromElement for Item { @@ -140,7 +140,7 @@ impl ToString for Subscription { #[derive(Clone, Debug)] // TODO: check if should be option or not -pub struct Group(Option<String>); +pub struct Group(pub Option<String>); impl FromElement for Group { fn from_element(mut element: peanuts::Element) -> peanuts::element::DeserializeResult<Self> { |