pub struct PushItem<'a> {
pub message: &'a Message,
pub chat: &'a Chat,
pub sender: &'a ChatContact,
pub sender_member: Option<&'a SpaceMember>,
pub space: Option<&'a Space>,
}Expand description
The stored records one ChatMessageEntry is built from.
Fields§
§message: &'a MessageThe new inbound message.
chat: &'a ChatThe Chat containing the message.
sender: &'a ChatContactThe sender’s ChatContact on the account owner’s contact list.
sender_member: Option<&'a SpaceMember>The sender’s SpaceMember record in the Space containing the
Chat, when the Chat is a channel and the record exists. Ignored for
other kinds.
space: Option<&'a Space>The Space containing the Chat, when the Chat is a channel. Its
name becomes spaceName. Ignored for other kinds.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PushItem<'a>
impl<'a> RefUnwindSafe for PushItem<'a>
impl<'a> Send for PushItem<'a>
impl<'a> Sync for PushItem<'a>
impl<'a> Unpin for PushItem<'a>
impl<'a> UnsafeUnpin for PushItem<'a>
impl<'a> UnwindSafe for PushItem<'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