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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more