pub struct MiddlewareCommandContext<'a> {
pub command: &'a str,
pub arguments: &'a str,
pub input: Option<&'a str>,
pub target: Option<MessageTarget>,
pub session_id: &'a str,
pub session_context: &'a SessionContext,
pub checkpoint: &'a Checkpoint,
pub checkpoints: Arc<dyn CheckpointStore>,
}Expand description
State available to a middleware-owned frontend command.
Fields§
§command: &'a str§arguments: &'a str§input: Option<&'a str>§target: Option<MessageTarget>§session_id: &'a str§session_context: &'a SessionContext§checkpoint: &'a Checkpoint§checkpoints: Arc<dyn CheckpointStore>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MiddlewareCommandContext<'a>
impl<'a> !UnwindSafe for MiddlewareCommandContext<'a>
impl<'a> Freeze for MiddlewareCommandContext<'a>
impl<'a> Send for MiddlewareCommandContext<'a>
impl<'a> Sync for MiddlewareCommandContext<'a>
impl<'a> Unpin for MiddlewareCommandContext<'a>
impl<'a> UnsafeUnpin for MiddlewareCommandContext<'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