Add a jingle message parser and serialiser.

This commit is contained in:
Emmanuel Gil Peyrot 2017-07-15 11:38:44 +01:00
commit 945ae350ac
3 changed files with 139 additions and 1 deletions

View file

@ -112,7 +112,7 @@ macro_rules! generate_attribute {
macro_rules! generate_id {
($elem:ident) => (
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct $elem(String);
pub struct $elem(pub String);
impl FromStr for $elem {
type Err = Error;
fn from_str(s: &str) -> Result<$elem, Error> {
@ -214,6 +214,9 @@ pub mod mam;
/// XEP-0319: Last User Interaction in Presence
pub mod idle;
/// XEP-0353: Jingle Message Initiation
pub mod jingle_message;
/// XEP-0359: Unique and Stable Stanza IDs
pub mod stanza_id;