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