1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
use serde::{Deserialize, Serialize};
#[derive(Deserialize, PartialEq, Debug)]
pub struct Mechanisms {
#[serde(rename = "$value")]
pub mechanisms: Vec<Mechanism>,
}
#[derive(Deserialize, PartialEq, Debug)]
pub struct Mechanism {
#[serde(rename = "$text")]
pub mechanism: String,
}
#[derive(Serialize, Debug)]
#[serde(rename = "auth")]
pub struct Auth {
#[serde(rename = "@xmlns")]
pub ns: String,
#[serde(rename = "@mechanism")]
pub mechanism: String,
#[serde(rename = "$text")]
pub sasl_data: Option<String>,
}
#[derive(Deserialize, Debug)]
pub struct Challenge {
#[serde(rename = "@xmlns")]
pub ns: String,
#[serde(rename = "$text")]
pub sasl_data: String,
}
|