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

This commit is contained in:
xmppftw 2024-12-17 17:00:53 +01:00 committed by xmpp ftw
parent 3c77ee0cc7
commit 8c033a3fa0
3 changed files with 11 additions and 0 deletions

View file

@ -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]

View file

@ -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>

View file

@ -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.