pub struct WakeLetter<'a> {
pub body: &'a str,
pub from_nick: &'a str,
pub event_id: &'a str,
pub room: Option<&'a str>,
pub reaction: Option<ReactionNote<'a>>,
}Expand description
One decrypted room text to put in front of the session.
Fields§
§body: &'a strPlaintext body.
from_nick: &'a strSender nick.
event_id: &'a strMatrix event id (dedupe key).
room: Option<&'a str>Room id, if known.
reaction: Option<ReactionNote<'a>>Set when this letter reports a reaction instead of carrying a message. A reaction letter is
low priority: it has no reply command and the routine JSON says "reply_needed": false.
Trait Implementations§
Source§impl<'a> Clone for WakeLetter<'a>
impl<'a> Clone for WakeLetter<'a>
impl<'a> Copy for WakeLetter<'a>
Auto Trait Implementations§
impl<'a> Freeze for WakeLetter<'a>
impl<'a> RefUnwindSafe for WakeLetter<'a>
impl<'a> Send for WakeLetter<'a>
impl<'a> Sync for WakeLetter<'a>
impl<'a> Unpin for WakeLetter<'a>
impl<'a> UnsafeUnpin for WakeLetter<'a>
impl<'a> UnwindSafe for WakeLetter<'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