From c0d2aae0385aee7f1bb2ecb330e72e40b8fde6a2 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 18 Feb 2025 11:39:19 +0000 Subject: implement handle_online() and handle_offline() for CommandMessage --- stanza/src/client/message.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'stanza/src/client/message.rs') diff --git a/stanza/src/client/message.rs b/stanza/src/client/message.rs index 2337d7b..703b80b 100644 --- a/stanza/src/client/message.rs +++ b/stanza/src/client/message.rs @@ -10,16 +10,16 @@ use super::XMLNS; #[derive(Debug)] pub struct Message { - from: Option, - id: Option, - to: Option, + pub from: Option, + pub id: Option, + pub to: Option, // can be omitted, if so default to normal - r#type: MessageType, - lang: Option, + pub r#type: MessageType, + pub lang: Option, // children - subject: Option, - body: Option, - thread: Option, + pub subject: Option, + pub body: Option, + pub thread: Option, } impl FromElement for Message { @@ -109,8 +109,8 @@ impl ToString for MessageType { #[derive(Clone, Debug)] pub struct Body { - lang: Option, - body: Option, + pub lang: Option, + pub body: Option, } impl FromElement for Body { -- cgit