pub struct TextMessage {
pub actor: Option<u32>,
pub sender: Option<User>,
pub target: TextTarget,
pub message: String,
}Expand description
A received text message. message is server-provided HTML and must be sanitized.
Fields§
§actor: Option<u32>Sender session; None for messages from the server itself.
sender: Option<User>The sender as known when the message arrived, without comment and avatar. Events are
handled after the state moved on, so a sender who left right after sending is no longer
in the state by then; None for the server itself or an unknown session.
target: TextTarget§message: StringTrait Implementations§
Source§impl Clone for TextMessage
impl Clone for TextMessage
Source§impl Debug for TextMessage
impl Debug for TextMessage
Source§impl PartialEq for TextMessage
impl PartialEq for TextMessage
impl StructuralPartialEq for TextMessage
Auto Trait Implementations§
impl Forget for TextMessage
impl Freeze for TextMessage
impl Move for TextMessage
impl RefUnwindSafe for TextMessage
impl Send for TextMessage
impl Sync for TextMessage
impl Unpin for TextMessage
impl UnsafeUnpin for TextMessage
impl UnwindSafe for TextMessage
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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