mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Renaming functions
This commit is contained in:
parent
10ab104ea0
commit
b69ecb31aa
1 changed files with 4 additions and 4 deletions
|
@ -199,12 +199,12 @@ impl Jid {
|
||||||
/// ```
|
/// ```
|
||||||
/// use jid::Jid;
|
/// use jid::Jid;
|
||||||
///
|
///
|
||||||
/// let jid = Jid::full("node", "domain", "resource").get_bare();
|
/// let jid = Jid::full("node", "domain", "resource").into_bare_jid();
|
||||||
///
|
///
|
||||||
/// assert_eq!(jid.node, Some("node".to_owned()));
|
/// assert_eq!(jid.node, Some("node".to_owned()));
|
||||||
/// assert_eq!(jid.domain, "domain".to_owned());
|
/// assert_eq!(jid.domain, "domain".to_owned());
|
||||||
/// assert_eq!(jid.resource, None);
|
/// assert_eq!(jid.resource, None);
|
||||||
pub fn get_bare(self) -> Jid {
|
pub fn into_bare_jid(self) -> Jid {
|
||||||
Jid {
|
Jid {
|
||||||
node: self.node,
|
node: self.node,
|
||||||
domain: self.domain,
|
domain: self.domain,
|
||||||
|
@ -245,12 +245,12 @@ impl Jid {
|
||||||
/// ```
|
/// ```
|
||||||
/// use jid::Jid;
|
/// use jid::Jid;
|
||||||
///
|
///
|
||||||
/// let jid = Jid::full("node", "domain", "resource").get_domain();
|
/// let jid = Jid::full("node", "domain", "resource").into_domain_jid();
|
||||||
///
|
///
|
||||||
/// assert_eq!(jid.node, None);
|
/// assert_eq!(jid.node, None);
|
||||||
/// assert_eq!(jid.domain, "domain".to_owned());
|
/// assert_eq!(jid.domain, "domain".to_owned());
|
||||||
/// assert_eq!(jid.resource, None);
|
/// assert_eq!(jid.resource, None);
|
||||||
pub fn get_domain(self) -> Jid {
|
pub fn into_domain_jid(self) -> Jid {
|
||||||
Jid {
|
Jid {
|
||||||
node: None,
|
node: None,
|
||||||
domain: self.domain,
|
domain: self.domain,
|
||||||
|
|
Loading…
Reference in a new issue