From 21f10a0b43c4ab1429b274b386065c023c661ab0 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 4 Dec 2024 17:38:36 +0000 Subject: implement send_stanza --- src/stanza/stream.rs | 1 + src/stanza/stream_error.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/stanza') diff --git a/src/stanza/stream.rs b/src/stanza/stream.rs index 4f3c435..84d62d9 100644 --- a/src/stanza/stream.rs +++ b/src/stanza/stream.rs @@ -164,6 +164,7 @@ impl FromElement for Feature { } } +#[derive(Debug)] pub struct Error { error: StreamError, text: Option, diff --git a/src/stanza/stream_error.rs b/src/stanza/stream_error.rs index 37db8a1..5ae04a6 100644 --- a/src/stanza/stream_error.rs +++ b/src/stanza/stream_error.rs @@ -5,7 +5,7 @@ use peanuts::{ pub const XMLNS: &str = "urn:ietf:params:xml:ns:xmpp-streams"; -#[derive(Clone)] +#[derive(Clone, Debug)] pub enum Error { BadFormat, BadNamespacePrefix, @@ -110,7 +110,7 @@ impl IntoElement for Error { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Text { text: Option, lang: Option, -- cgit