Skip to main content

JidExt

Trait JidExt 

Source
pub trait JidExt {
Show 16 methods // Required methods fn user(&self) -> &str; fn server(&self) -> Server; 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_status_broadcast(&self) -> bool { ... } fn is_psa(&self) -> bool { ... } fn is_bot(&self) -> bool { ... } fn is_newsletter(&self) -> bool { ... } fn is_hosted(&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) -> Server

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_status_broadcast(&self) -> bool

Source

fn is_psa(&self) -> bool

The system/announcements account (0@s.whatsapp.net / 0@c.us). It never answers user-directed IQs, so requests must be short-circuited client-side (WA Web excludes it via isPSA before hitting the server).

Source

fn is_bot(&self) -> bool

Source

fn is_newsletter(&self) -> bool

Source

fn is_hosted(&self) -> bool

Returns true if this is a hosted/Cloud API device. Hosted devices have device ID 99 or use @hosted/@hosted.lid server. These devices should be excluded from group message fanout.

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".

Implementors§

Source§

impl JidExt for Jid

Source§

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