From ebfbc400a77a92dabb930bf652edc35af9ce69a9 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 2 Aug 2018 18:33:37 +0200 Subject: [PATCH] delay: Document this module. --- src/delay.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/delay.rs b/src/delay.rs index 4786365f..e44912a0 100644 --- a/src/delay.rs +++ b/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 = "from" => optional, + + /// The time at which this message got stored. stamp: DateTime = "stamp" => required ], + /// The optional reason this message got delayed. data: PlainText> );