diff options
author | 2025-02-18 11:39:19 +0000 | |
---|---|---|
committer | 2025-02-18 11:39:19 +0000 | |
commit | c0d2aae0385aee7f1bb2ecb330e72e40b8fde6a2 (patch) | |
tree | c4ee54c64a2d8c0adf222dce5a334502453de473 /stanza/src/client/presence.rs | |
parent | 945f1406165aa58414c0374a1ba984a1d6d896c6 (diff) | |
download | luz-c0d2aae0385aee7f1bb2ecb330e72e40b8fde6a2.tar.gz luz-c0d2aae0385aee7f1bb2ecb330e72e40b8fde6a2.tar.bz2 luz-c0d2aae0385aee7f1bb2ecb330e72e40b8fde6a2.zip |
implement handle_online() and handle_offline() for CommandMessage
Diffstat (limited to '')
-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 { |