pub struct ChatMap { /* private fields */ }
Expand description
Helper structure to efficiently retrieve chats via their peer.
A lot of responses include the chats related to them in the form of a list of users
and chats, making it annoying to extract a specific chat. This structure lets you
save those separate vectors in a single place and query them by using a Peer
.
Implementations§
Auto Trait Implementations§
impl Freeze for ChatMap
impl RefUnwindSafe for ChatMap
impl Send for ChatMap
impl Sync for ChatMap
impl Unpin for ChatMap
impl UnwindSafe for ChatMap
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