pub struct DecryptedWake<'a> {
pub body: &'a str,
pub from: &'a str,
pub nick: Option<&'a str>,
pub event_id: &'a str,
pub room: Option<&'a str>,
pub from_nick: Option<&'a str>,
pub to: Option<&'a str>,
pub reply: Option<&'a str>,
}Expand description
One decrypted room text the routine should learn about.
Serialized as a JSON object. body is the plaintext a routine that
only reads the message still finds. from is the sender mxid.
event_id is the Matrix event id. nick is omitted when this shell
does not already know a display name; it is never invented.
Fields§
§body: &'a strPlaintext body.
from: &'a strSender mxid.
nick: Option<&'a str>Sender display name, if the room state already has one.
event_id: &'a strMatrix event id.
room: Option<&'a str>Room id the text arrived in (room).
from_nick: Option<&'a str>Sender nick: the localpart of from (from_nick).
to: Option<&'a str>Recipient nick: the session this wake is for (to).
reply: Option<&'a str>One-line reply command for the recipient (reply), e.g.
m4a-send --as <to> --to <from_nick> '<text>'.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DecryptedWake<'a>
impl<'a> RefUnwindSafe for DecryptedWake<'a>
impl<'a> Send for DecryptedWake<'a>
impl<'a> Sync for DecryptedWake<'a>
impl<'a> Unpin for DecryptedWake<'a>
impl<'a> UnsafeUnpin for DecryptedWake<'a>
impl<'a> UnwindSafe for DecryptedWake<'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