Add a stanza-id parser and serialiser.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-29 03:23:50 +01:00
commit 8b964df645
3 changed files with 135 additions and 0 deletions

View file

@ -57,6 +57,9 @@ pub const HASH_ALGO_BLAKE2B_512: &'static str = "urn:xmpp:hash-function-text-nam
/// XEP-0308: Last Message Correction
pub const MESSAGE_CORRECT: &'static str = "urn:xmpp:message-correct:0";
/// XEP-0359: Unique and Stable Stanza IDs
pub const SID: &'static str = "urn:xmpp:sid:0";
/// XEP-0380: Explicit Message Encryption
pub const EME: &'static str = "urn:xmpp:eme:0";