diff options
Diffstat (limited to 'stanza/src/client/presence.rs')
-rw-r--r-- | stanza/src/client/presence.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/stanza/src/client/presence.rs b/stanza/src/client/presence.rs index 877c4c6..ff7ba24 100644 --- a/stanza/src/client/presence.rs +++ b/stanza/src/client/presence.rs @@ -10,18 +10,18 @@ use super::{error::Error, XMLNS}; #[derive(Debug)] pub struct Presence { - from: Option<JID>, - id: Option<String>, - to: Option<JID>, - r#type: Option<PresenceType>, - lang: Option<String>, + pub from: Option<JID>, + pub id: Option<String>, + pub to: Option<JID>, + pub r#type: Option<PresenceType>, + pub lang: Option<String>, // children - show: Option<Show>, - status: Option<Status>, - priority: Option<Priority>, + pub show: Option<Show>, + pub status: Option<Status>, + pub priority: Option<Priority>, // TODO: ##other // other: Vec<Other>, - errors: Vec<Error>, + pub errors: Vec<Error>, } impl FromElement for Presence { @@ -165,8 +165,8 @@ impl ToString for Show { #[derive(Clone, Debug)] pub struct Status { - lang: Option<String>, - status: String1024, + pub lang: Option<String>, + pub status: String1024, } impl FromElement for Status { |