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,9 +12,14 @@ use error::Error;
use ns;
/// Structure representing an `<encryption xmlns='urn:xmpp:eme:0'/>` element.
#[derive(Debug, Clone)]
pub struct ExplicitMessageEncryption {
/// Namespace of the encryption scheme used.
pub namespace: String,
/// User-friendly name for the encryption scheme, should be `None` for OTR,
/// legacy OpenPGP and OX.
pub name: Option<String>,
}