From 5dd488550f9959914d16bde9269284ebd043e0e6 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 18 Feb 2025 06:14:43 +0000 Subject: WIP: roster retrieval --- stanza/src/roster.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'stanza') 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, + pub approved: Option, /// 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, + pub name: Option, /// state of the presence subscription - subscription: Option, - groups: Vec, + pub subscription: Option, + pub groups: Vec, } 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); +pub struct Group(pub Option); impl FromElement for Group { fn from_element(mut element: peanuts::Element) -> peanuts::element::DeserializeResult { -- cgit