pub struct SessionContext<'a> {
pub channel_id: Option<&'a str>,
pub room_id: Option<&'a str>,
pub sender_id: Option<&'a str>,
}Expand description
Structured routing context recorded alongside a session. Mirrors the
ChannelMessage fields the orchestrator uses to compose
conversation_history_key so the session row can be queried by
channel / room / sender without re-parsing the synthetic key.
Fields§
§channel_id: Option<&'a str><type>.<alias> ChannelRef (discord.clamps).
room_id: Option<&'a str>Platform-side room / thread id.
sender_id: Option<&'a str>Inbound sender id (channel-native username, phone, …).
Trait Implementations§
Source§impl<'a> Clone for SessionContext<'a>
impl<'a> Clone for SessionContext<'a>
Source§fn clone(&self) -> SessionContext<'a>
fn clone(&self) -> SessionContext<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SessionContext<'a>
impl<'a> Debug for SessionContext<'a>
Source§impl<'a> Default for SessionContext<'a>
impl<'a> Default for SessionContext<'a>
Source§fn default() -> SessionContext<'a>
fn default() -> SessionContext<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SessionContext<'a>
impl<'a> RefUnwindSafe for SessionContext<'a>
impl<'a> Send for SessionContext<'a>
impl<'a> Sync for SessionContext<'a>
impl<'a> Unpin for SessionContext<'a>
impl<'a> UnsafeUnpin for SessionContext<'a>
impl<'a> UnwindSafe for SessionContext<'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