diff options
Diffstat (limited to '')
| -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> { | 
