Bump quick-xml to 0.26

This commit is contained in:
Dirkjan Ochtman 2022-11-21 12:25:35 -08:00 committed by masalachai
parent a34dbdcf82
commit 0f052ea125
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ default = ["tokio-rustls"]
async-trait = "0.1.52"
celes = "2.1"
chrono = { version = "0.4.23", features = ["serde"] }
quick-xml = { version = "0.23", features = [ "serialize" ] }
quick-xml = { version = "0.26", features = [ "serialize" ] }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = [ "full" ] }
tokio-rustls = { version = "0.23", optional = true }

View File

@ -33,10 +33,10 @@ impl Default for MessagePoll<'static> {
#[derive(Deserialize, Debug)]
pub enum MessageData {
/// Data under the &lt;domain:trnData&gt; tag
#[serde(rename = "domain:trnData")]
#[serde(rename = "trnData")]
DomainTransfer(DomainTransferResponseData),
/// Data under the &lt;host:infData&gt; tag
#[serde(rename = "host:infData")]
#[serde(rename = "infData")]
HostInfo(HostInfoResponseData),
}
@ -44,7 +44,7 @@ pub enum MessageData {
#[derive(Deserialize, Debug)]
pub struct MessagePollResponse {
/// Data under the &lt;trnData&gt; tag
#[serde(alias = "trnData", alias = "infData")]
#[serde(rename = "trnData", alias = "infData")]
pub message_data: MessageData,
}