pub struct JidRef<'a> {
pub user: Cow<'a, str>,
pub server: Cow<'a, str>,
pub agent: u8,
pub device: u16,
pub integrator: u16,
}Fields§
§user: Cow<'a, str>§server: Cow<'a, str>§agent: u8§device: u16§integrator: u16Implementations§
Trait Implementations§
Source§impl<'a> JidExt for JidRef<'a>
impl<'a> JidExt for JidRef<'a>
fn user(&self) -> &str
fn server(&self) -> &str
fn device(&self) -> u16
fn integrator(&self) -> u16
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
impl<'a> Eq for JidRef<'a>
impl<'a> StructuralPartialEq for JidRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for JidRef<'a>
impl<'a> RefUnwindSafe for JidRef<'a>
impl<'a> Send for JidRef<'a>
impl<'a> Sync for JidRef<'a>
impl<'a> Unpin for JidRef<'a>
impl<'a> UnwindSafe for JidRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more