mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
idle: Document this module.
This commit is contained in:
parent
cacafe7ea1
commit
e757d8dde3
1 changed files with 10 additions and 4 deletions
14
src/idle.rs
14
src/idle.rs
|
@ -4,12 +4,18 @@
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// 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/.
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
use date::DateTime;
|
use date::DateTime;
|
||||||
|
|
||||||
generate_element!(Idle, "idle", IDLE,
|
generate_element!(
|
||||||
attributes: [
|
/// Represents the last time the user interacted with their system.
|
||||||
since: DateTime = "since" => required,
|
Idle, "idle", IDLE,
|
||||||
]);
|
attributes: [
|
||||||
|
/// The time at which the user stopped interacting.
|
||||||
|
since: DateTime = "since" => required,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
Loading…
Reference in a new issue