pub struct MessageSubmitContext<'a> {
pub turn: TurnIdentity<'a>,
pub author: &'a MessageAuthor,
pub message: &'a str,
pub attachments: &'a [SessionFileReference],
pub events: &'a mut Vec<EventMsg>,
/* private fields */
}Expand description
Mutable state exposed before a prepared next-turn message enters durable context.
Fields§
§turn: TurnIdentity<'a>§message: &'a str§attachments: &'a [SessionFileReference]§events: &'a mut Vec<EventMsg>Implementations§
Source§impl MessageSubmitContext<'_>
impl MessageSubmitContext<'_>
Auto Trait Implementations§
impl<'a> !UnwindSafe for MessageSubmitContext<'a>
impl<'a> Freeze for MessageSubmitContext<'a>
impl<'a> RefUnwindSafe for MessageSubmitContext<'a>
impl<'a> Send for MessageSubmitContext<'a>
impl<'a> Sync for MessageSubmitContext<'a>
impl<'a> Unpin for MessageSubmitContext<'a>
impl<'a> UnsafeUnpin for MessageSubmitContext<'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