mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
delay: Document this module.
This commit is contained in:
parent
866007621a
commit
ebfbc400a7
1 changed files with 9 additions and 1 deletions
10
src/delay.rs
10
src/delay.rs
|
@ -4,17 +4,25 @@
|
|||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
use date::DateTime;
|
||||
|
||||
use jid::Jid;
|
||||
|
||||
use helpers::PlainText;
|
||||
|
||||
generate_element_with_text!(Delay, "delay", DELAY,
|
||||
generate_element_with_text!(
|
||||
/// Notes when and by whom a message got stored for later delivery.
|
||||
Delay, "delay", DELAY,
|
||||
[
|
||||
/// The entity which delayed this message.
|
||||
from: Option<Jid> = "from" => optional,
|
||||
|
||||
/// The time at which this message got stored.
|
||||
stamp: DateTime = "stamp" => required
|
||||
],
|
||||
/// The optional reason this message got delayed.
|
||||
data: PlainText<Option<String>>
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue