From 8c033a3fa0bda6c734d63ea86918b3bf4eb4cecf Mon Sep 17 00:00:00 2001 From: xmppftw Date: Tue, 17 Dec 2024 17:00:53 +0100 Subject: [PATCH] xso: Implement FromXmlText and AsXmlText for NodePart,DomainPart,ResourcePart --- jid/CHANGELOG.md | 3 +++ xso/ChangeLog | 2 ++ xso/src/text.rs | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/jid/CHANGELOG.md b/jid/CHANGELOG.md index a7b07a69..36b4fa46 100644 --- a/jid/CHANGELOG.md +++ b/jid/CHANGELOG.md @@ -32,6 +32,9 @@ Version 0.11.1, release 2024-07-23: - Improve perfs of comparison operators (#123) - Add more test cases - Fix clippy lints, cargo doc, and other warnings + - xso::FromXmlText and xso::AsXmlText are now implemented for NodePart, + DomainPart, and ResourcePart (!485) + Version 0.11.0, release 2024-07-23 [YANKED] diff --git a/xso/ChangeLog b/xso/ChangeLog index 108d4c6d..b7cdc2bc 100644 --- a/xso/ChangeLog +++ b/xso/ChangeLog @@ -23,6 +23,8 @@ Version NEXT: - Support for collecting all unknown children in a single field as collection of `minidom::Element`. - Support for "transparent" structs (newtype-like patterns for XSO). + - FromXmlText and AsXmlText are now implemented for jid::NodePart, + jid::DomainPart, and jid::ResourcePart (!485) Version 0.1.2: 2024-07-26 Jonas Schäfer diff --git a/xso/src/text.rs b/xso/src/text.rs index bcd4edfc..0fe4eef1 100644 --- a/xso/src/text.rs +++ b/xso/src/text.rs @@ -117,6 +117,12 @@ convert_via_fromstr_and_display! { jid::FullJid, #[cfg(feature = "jid")] jid::BareJid, + #[cfg(feature = "jid")] + jid::NodePart, + #[cfg(feature = "jid")] + jid::DomainPart, + #[cfg(feature = "jid")] + jid::ResourcePart, } /// Represent a way to encode/decode text data into a Rust type.