1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-02 14:29:20 +02:00

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