summaryrefslogtreecommitdiffstats
path: root/src/stanza/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stanza/stream.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stanza/stream.rs b/src/stanza/stream.rs
index dde741d..4c0addd 100644
--- a/src/stanza/stream.rs
+++ b/src/stanza/stream.rs
@@ -1,5 +1,7 @@
use serde::{Deserialize, Serialize};
+use super::sasl::Mechanisms;
+
#[derive(Serialize, Deserialize)]
#[serde(rename = "stream:stream")]
struct Stream {
@@ -31,6 +33,9 @@ pub enum StreamFeature {
#[serde(rename = "starttls")]
StartTls,
// TODO: other stream features
- Sasl,
+ #[serde(rename = "mechanisms")]
+ Sasl(Mechanisms),
Bind,
+ #[serde(other)]
+ Unknown,
}