iq: Implement the Iq*Payload traits on every possible payload.

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-16 15:08:17 +02:00
commit 412eafb363
11 changed files with 64 additions and 0 deletions

View file

@ -12,6 +12,7 @@ use jid::Jid;
use error::Error;
use ns;
use iq::IqSetPayload;
generate_attribute!(Action, "action", {
ContentAccept => "content-accept",
@ -305,6 +306,8 @@ pub struct Jingle {
pub other: Vec<Element>,
}
impl IqSetPayload for Jingle {}
impl Jingle {
pub fn new(action: Action, sid: SessionId) -> Jingle {
Jingle {