Merge branch 'hash' into 'master'

Implement the Hash trait on Jid

See merge request !3
This commit is contained in:
lumi 2017-05-27 21:14:23 +00:00
commit 83b0d6fa94

View file

@ -24,7 +24,7 @@ pub enum JidParseError {
/// - A node/name, `node`, which is the optional part before the @. /// - A node/name, `node`, which is the optional part before the @.
/// - A domain, `domain`, which is the mandatory part after the @ but before the /. /// - A domain, `domain`, which is the mandatory part after the @ but before the /.
/// - A resource, `resource`, which is the optional part after the /. /// - A resource, `resource`, which is the optional part after the /.
#[derive(Clone, PartialEq, Eq)] #[derive(Clone, PartialEq, Eq, Hash)]
pub struct Jid { pub struct Jid {
/// The node part of the Jabber ID, if it exists, else None. /// The node part of the Jabber ID, if it exists, else None.
pub node: Option<String>, pub node: Option<String>,