Presence now has constructors for each type variant, and a with_payload builder method (closes #79)

This commit is contained in:
xmppftw xmppftw 2023-06-03 10:55:34 +02:00 • committed by xmpp ftw
commit 512c1d1aae
2 changed files with 43 additions and 0 deletions

View file

@ -5,6 +5,8 @@ xxx
* Improvements:
- muc::user::Item: Added with_ helpers
- Correct cargo doc warnings
- Presence now has constructors for each variant so you don't have to import presence::Type, where Presence::available represents type None (#79)
- Presence::with_payload builds a payload into the presence (#79)
* Breaking changes:
- Removed the 'serde' feature. Add it directly by using 'jid'.
`jid = { version = "*", features = ["serde"] }`.