aboutsummaryrefslogtreecommitdiffstats
path: root/stanza/src/bind.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2024-12-22 18:58:28 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2024-12-22 18:58:28 +0000
commit6385e43e8ca467e53c6a705a932016c5af75c3a2 (patch)
treef63fb7bd9a349f24b093ba4dd037c6ce7789f5ee /stanza/src/bind.rs
parent595d165479b8b12e456f39205d8433b822b07487 (diff)
downloadluz-6385e43e8ca467e53c6a705a932016c5af75c3a2.tar.gz
luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.tar.bz2
luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.zip
implement sink and stream with tokio::spawn
Diffstat (limited to 'stanza/src/bind.rs')
-rw-r--r--stanza/src/bind.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/stanza/src/bind.rs b/stanza/src/bind.rs
index 155fd1b..63644b1 100644
--- a/stanza/src/bind.rs
+++ b/stanza/src/bind.rs
@@ -6,7 +6,7 @@ use peanuts::{
pub const XMLNS: &str = "urn:ietf:params:xml:ns:xmpp-bind";
-#[derive(Clone)]
+#[derive(Clone, Debug)]
pub struct Bind {
pub r#type: Option<BindType>,
}
@@ -28,7 +28,7 @@ impl IntoElement for Bind {
}
}
-#[derive(Clone)]
+#[derive(Clone, Debug)]
pub enum BindType {
Resource(ResourceType),
Jid(FullJidType),
@@ -56,7 +56,7 @@ impl IntoElement for BindType {
}
// minLength 8 maxLength 3071
-#[derive(Clone)]
+#[derive(Clone, Debug)]
pub struct FullJidType(pub JID);
impl FromElement for FullJidType {
@@ -77,7 +77,7 @@ impl IntoElement for FullJidType {
}
// minLength 1 maxLength 1023
-#[derive(Clone)]
+#[derive(Clone, Debug)]
pub struct ResourceType(pub String);
impl FromElement for ResourceType {