Jid (de)serialization now uses untagged representation (close #66)

This commit is contained in:
xmppftw 2023-05-28 19:54:51 +02:00
parent 8c18eeecd1
commit ce255d9602
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Unreleased
* Breaking
- serde: Jid is now using untagged enum representation (#66)
Version 0.9.3, release 2022-03-07:
* Updates
- Bumped minidom to 0.14

View file

@ -67,6 +67,7 @@ impl fmt::Display for JidParseError {
/// An enum representing a Jabber ID. It can be either a `FullJid` or a `BareJid`.
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(untagged))]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum Jid {
/// Bare Jid