JidExt

Trait JidExt 

Source
pub trait JidExt {
    // Required methods
    fn user(&self) -> &str;
    fn server(&self) -> &str;
    fn device(&self) -> u16;
    fn integrator(&self) -> u16;

    // Provided methods
    fn is_ad(&self) -> bool { ... }
    fn is_interop(&self) -> bool { ... }
    fn is_messenger(&self) -> bool { ... }
    fn is_group(&self) -> bool { ... }
    fn is_broadcast_list(&self) -> bool { ... }
    fn is_bot(&self) -> bool { ... }
    fn is_empty(&self) -> bool { ... }
    fn is_same_user_as(&self, other: &impl JidExt) -> bool { ... }
}

Required Methods§

Source

fn user(&self) -> &str

Source

fn server(&self) -> &str

Source

fn device(&self) -> u16

Source

fn integrator(&self) -> u16

Provided Methods§

Source

fn is_ad(&self) -> bool

Source

fn is_interop(&self) -> bool

Source

fn is_messenger(&self) -> bool

Source

fn is_group(&self) -> bool

Source

fn is_broadcast_list(&self) -> bool

Source

fn is_bot(&self) -> bool

Source

fn is_empty(&self) -> bool

Source

fn is_same_user_as(&self, other: &impl JidExt) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl JidExt for Jid

Source§

impl<'a> JidExt for JidRef<'a>