mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Jid (de)serialization now uses untagged representation (close #66)
This commit is contained in:
parent
8c18eeecd1
commit
ce255d9602
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue