pub struct PeerAuth(/* private fields */);Expand description
Witness to the session’s authority from Telegram to interact with a peer.
If Telegram deems the session to already have such authority, the session may
be allowed to present PeerAuth::default instead of this witness. This can
happen when the logged-in user is a bot account, or, for user accounts, when
the peer being interacted with is one of its contacts.
Implementations§
Trait Implementations§
impl Copy for PeerAuth
impl Eq for PeerAuth
impl StructuralPartialEq for PeerAuth
Auto Trait Implementations§
impl Freeze for PeerAuth
impl RefUnwindSafe for PeerAuth
impl Send for PeerAuth
impl Sync for PeerAuth
impl Unpin for PeerAuth
impl UnwindSafe for PeerAuth
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