From be198ca15bbaf633c1535db5bae7091520546aed Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Mon, 2 Dec 2024 21:50:15 +0000 Subject: implement bind --- src/stanza/client/message.rs | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/stanza/client/message.rs (limited to 'src/stanza/client/message.rs') diff --git a/src/stanza/client/message.rs b/src/stanza/client/message.rs new file mode 100644 index 0000000..cdfda5d --- /dev/null +++ b/src/stanza/client/message.rs @@ -0,0 +1,37 @@ +use crate::JID; + +pub struct Message { + from: Option, + id: Option, + to: Option, + r#type: Option, + // children + subject: Option, + body: Option, + thread: Option, + lang: Option, +} + +pub enum MessageType { + Chat, + Error, + Groupchat, + Headline, + Normal, +} + +pub struct Body { + lang: Option, + body: Option, +} + +pub struct Subject { + lang: Option, + subject: Option, +} + +pub struct Thread { + // TODO: NOT DONE + parent: Option, + thread: Option, +} -- cgit