pub struct MessagePluginCtx {
pub session_id: Uuid,
pub message_id: Uuid,
pub messages: Vec<Message>,
pub call_ctx: PluginCallContext,
}Expand description
Context passed to message-handling plugin methods.
Debug is implemented manually to redact messages — message content is
PII (user prompts, assistant responses) that must never appear in logs.
The summary surfaces len and a per-role count so observability is
preserved without leaking text. call_ctx keeps its own redaction (see
PluginCallContext::Debug).
Fields§
§session_id: Uuid§message_id: Uuid§messages: Vec<Message>§call_ctx: PluginCallContextTrait Implementations§
Source§impl Clone for MessagePluginCtx
impl Clone for MessagePluginCtx
Source§fn clone(&self) -> MessagePluginCtx
fn clone(&self) -> MessagePluginCtx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessagePluginCtx
impl RefUnwindSafe for MessagePluginCtx
impl Send for MessagePluginCtx
impl Sync for MessagePluginCtx
impl Unpin for MessagePluginCtx
impl UnsafeUnpin for MessagePluginCtx
impl UnwindSafe for MessagePluginCtx
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