Message now has constructors for each type, and a with_body builder method (#78)

This commit is contained in:
xmppftw xmppftw 2023-06-03 11:23:32 +02:00
commit 6fa6deddcb
2 changed files with 49 additions and 1 deletions

View file

@ -7,6 +7,8 @@ xxx
- 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)
- Message now has constructors for each type ; Message::new still builds a Chat type (#78)
- Message::with_body builder method appends a body in a given language to the message (#78)
* Breaking changes:
- Removed the 'serde' feature. Add it directly by using 'jid'.
`jid = { version = "*", features = ["serde"] }`.