iq: Implement the Iq*Payload traits on every possible payload.
This commit is contained in:
parent
d5f88d2636
commit
412eafb363
11 changed files with 64 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue