message: Make MessagePayload a trait, and implement it on every payload.
This commit is contained in:
parent
e41de29d9d
commit
07cccad356
10 changed files with 36 additions and 89 deletions
|
|
@ -11,6 +11,7 @@ use jid::Jid;
|
|||
|
||||
use error::Error;
|
||||
|
||||
use message::MessagePayload;
|
||||
use iq::{IqGetPayload, IqSetPayload, IqResultPayload};
|
||||
use data_forms::DataForm;
|
||||
use rsm::{SetQuery, SetResult};
|
||||
|
|
@ -65,6 +66,8 @@ generate_element!(
|
|||
]
|
||||
);
|
||||
|
||||
impl MessagePayload for Result_ {}
|
||||
|
||||
generate_attribute!(
|
||||
/// True when the end of a MAM query has been reached.
|
||||
Complete, "complete", bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue