xso: Implement FromXmlText and AsXmlText for NodePart,DomainPart,ResourcePart

xmppftw created

Change summary

jid/CHANGELOG.md | 3 +++
xso/ChangeLog    | 2 ++
xso/src/text.rs  | 6 ++++++
3 files changed, 11 insertions(+)

Detailed changes

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]
 

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 <jonas@zombofant.net>

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.