Struct whatsappweb::Jid [−][src]
Fields
id: String
is_group: bool
Methods
impl Jid
[src]
impl Jid
pub fn to_message_jid(&self) -> String
[src]
pub fn to_message_jid(&self) -> String
impl Jid
[src]
impl Jid
Jid used to identify either a group or an individual
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
pub fn phonenumber(&self) -> Option<String>
[src]
pub fn phonenumber(&self) -> Option<String>
If the Jid is from an individual return the international phonenumber, else None
pub fn from_phonenumber(phonenumber: String) -> Result<Jid>
[src]
pub fn from_phonenumber(phonenumber: String) -> Result<Jid>
Trait Implementations
impl Debug for Jid
[src]
impl Debug for Jid
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Jid
[src]
impl Clone for Jid
fn clone(&self) -> Jid
[src]
fn clone(&self) -> Jid
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for Jid
[src]
impl PartialOrd for Jid
fn partial_cmp(&self, other: &Jid) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Jid) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Jid) -> bool
[src]
fn lt(&self, other: &Jid) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Jid) -> bool
[src]
fn le(&self, other: &Jid) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Jid) -> bool
[src]
fn gt(&self, other: &Jid) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Jid) -> bool
[src]
fn ge(&self, other: &Jid) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Jid
[src]
impl PartialEq for Jid
fn eq(&self, other: &Jid) -> bool
[src]
fn eq(&self, other: &Jid) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Jid) -> bool
[src]
fn ne(&self, other: &Jid) -> bool
This method tests for !=
.
impl FromStr for Jid
[src]
impl FromStr for Jid