From 6385e43e8ca467e53c6a705a932016c5af75c3a2 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 22 Dec 2024 18:58:28 +0000 Subject: implement sink and stream with tokio::spawn --- stanza/src/bind.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stanza/src/bind.rs') 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, } @@ -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 { -- cgit