diff --git a/Cargo.toml b/Cargo.toml index 3c7dae1..75bb371 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } diff --git a/src/message/poll.rs b/src/message/poll.rs index 8747765..ed87ae7 100644 --- a/src/message/poll.rs +++ b/src/message/poll.rs @@ -33,10 +33,10 @@ impl Default for MessagePoll<'static> { #[derive(Deserialize, Debug)] pub enum MessageData { /// Data under the <domain:trnData> tag - #[serde(rename = "domain:trnData")] + #[serde(rename = "trnData")] DomainTransfer(DomainTransferResponseData), /// Data under the <host:infData> 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 <trnData> tag - #[serde(alias = "trnData", alias = "infData")] + #[serde(rename = "trnData", alias = "infData")] pub message_data: MessageData, }