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
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue