pub struct SessionId(/* private fields */);Expand description
Caller-visible session / correlation identity for transaction routing.
For external-agent Channels this is the validated external session string. For direct-LLM Channels it is ephemeral routing only (no provider history).
Implementations§
Source§impl SessionId
impl SessionId
Sourcepub fn as_external(&self) -> ExternalSessionId
pub fn as_external(&self) -> ExternalSessionId
View as an external session id with identical bytes.
Sourcepub fn into_external(self) -> ExternalSessionId
pub fn into_external(self) -> ExternalSessionId
Convert into an external session id with identical bytes.
Sourcepub fn from_external(id: &ExternalSessionId) -> Self
pub fn from_external(id: &ExternalSessionId) -> Self
Build from an external session id with identical bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SessionId
impl<'de> Deserialize<'de> for SessionId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionId
impl StructuralPartialEq for SessionId
Auto Trait Implementations§
impl Freeze for SessionId
impl RefUnwindSafe for SessionId
impl Send for SessionId
impl Sync for SessionId
impl Unpin for SessionId
impl UnsafeUnpin for SessionId
impl UnwindSafe for SessionId
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