Add a jingle message parser and serialiser.
This commit is contained in:
parent
161e5dcc9b
commit
945ae350ac
3 changed files with 139 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue