diff options
author | 2024-12-22 18:58:28 +0000 | |
---|---|---|
committer | 2024-12-22 18:58:28 +0000 | |
commit | 6385e43e8ca467e53c6a705a932016c5af75c3a2 (patch) | |
tree | f63fb7bd9a349f24b093ba4dd037c6ce7789f5ee /stanza/src/client/message.rs | |
parent | 595d165479b8b12e456f39205d8433b822b07487 (diff) | |
download | luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.tar.gz luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.tar.bz2 luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.zip |
implement sink and stream with tokio::spawn
Diffstat (limited to 'stanza/src/client/message.rs')
-rw-r--r-- | stanza/src/client/message.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/stanza/src/client/message.rs b/stanza/src/client/message.rs index b9d995f..2337d7b 100644 --- a/stanza/src/client/message.rs +++ b/stanza/src/client/message.rs @@ -8,6 +8,7 @@ use peanuts::{ use super::XMLNS; +#[derive(Debug)] pub struct Message { from: Option<JID>, id: Option<String>, @@ -69,7 +70,7 @@ impl IntoElement for Message { } } -#[derive(Default, PartialEq, Eq, Copy, Clone)] +#[derive(Default, PartialEq, Eq, Copy, Clone, Debug)] pub enum MessageType { Chat, Error, @@ -106,7 +107,7 @@ impl ToString for MessageType { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Body { lang: Option<String>, body: Option<String>, @@ -132,7 +133,7 @@ impl IntoElement for Body { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Subject { lang: Option<String>, subject: Option<String>, @@ -158,7 +159,7 @@ impl IntoElement for Subject { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Thread { parent: Option<String>, thread: Option<String>, |