attention, chatstates, eme, ping: Add a docstring on the structs.

This commit is contained in:
Emmanuel Gil Peyrot 2017-07-20 23:47:21 +01:00
commit 7612c53f9a
4 changed files with 18 additions and 0 deletions

View file

@ -12,12 +12,23 @@ use error::Error;
use ns;
/// Enum representing chatstate elements part of the
/// `http://jabber.org/protocol/chatstates` namespace.
#[derive(Debug, Clone)]
pub enum ChatState {
/// `<active xmlns='http://jabber.org/protocol/chatstates'/>`
Active,
/// `<composing xmlns='http://jabber.org/protocol/chatstates'/>`
Composing,
/// `<gone xmlns='http://jabber.org/protocol/chatstates'/>`
Gone,
/// `<inactive xmlns='http://jabber.org/protocol/chatstates'/>`
Inactive,
/// `<paused xmlns='http://jabber.org/protocol/chatstates'/>`
Paused,
}