aboutsummaryrefslogtreecommitdiffstats
path: root/stanza/src/bind.rs
diff options
context:
space:
mode:
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 {