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

@ -11,6 +11,7 @@ use minidom::Element;
use error::Error;
use iq::{IqGetPayload, IqSetPayload, IqResultPayload};
use data_forms::DataForm;
use ns;
@ -25,6 +26,10 @@ pub struct Query {
//pub oob: Option<Oob>,
}
impl IqGetPayload for Query;
impl IqSetPayload for Query;
impl IqResultPayload for Query;
impl TryFrom<Element> for Query {
type Err = Error;