From e757d8dde3567eed0d562d9e82de213934a19e6f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 1 Aug 2018 00:24:00 +0200 Subject: [PATCH] idle: Document this module. --- src/idle.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/idle.rs b/src/idle.rs index 22e84460..e8fb05bc 100644 --- a/src/idle.rs +++ b/src/idle.rs @@ -4,12 +4,18 @@ // 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; -generate_element!(Idle, "idle", IDLE, -attributes: [ - since: DateTime = "since" => required, -]); +generate_element!( + /// Represents the last time the user interacted with their system. + Idle, "idle", IDLE, + attributes: [ + /// The time at which the user stopped interacting. + since: DateTime = "since" => required, + ] +); #[cfg(test)] mod tests {