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
|
|
@ -5,6 +5,7 @@
|
|||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
use jid::Jid;
|
||||
use iq::{IqGetPayload, IqSetPayload, IqResultPayload};
|
||||
|
||||
generate_elem_id!(Group, "group", ROSTER);
|
||||
|
||||
|
|
@ -54,6 +55,10 @@ generate_element_with_children!(
|
|||
]
|
||||
);
|
||||
|
||||
impl IqGetPayload for Roster {}
|
||||
impl IqSetPayload for Roster {}
|
||||
impl IqResultPayload for Roster {}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
|
|||
Loading…
Reference in a new issue