pub struct SessionContext {
pub bot_id: String,
pub tenant_id: Option<String>,
pub user_id: Option<String>,
pub user_name: Option<String>,
pub workspace_id: Option<String>,
pub workspace_label: Option<String>,
pub origin_label: Option<String>,
}Expand description
Frontend-visible context for the session owner, workspace, and origin.
These values are correlation metadata, not authentication or authorization. A remote host must derive them after authentication and inject tenant-scoped backends when it creates the agent.
Fields§
§bot_id: StringImmutable identity of the Bot that owns this session.
tenant_id: Option<String>Opaque tenant or organization identifier.
user_id: Option<String>Opaque identifier for the user who owns the session.
user_name: Option<String>Optional display label, such as the local operating-system user name.
workspace_id: Option<String>Opaque workspace identifier; this is not a filesystem path.
workspace_label: Option<String>Optional frontend-facing workspace label.
origin_label: Option<String>Optional label describing what created the session.
Trait Implementations§
Source§impl Clone for SessionContext
impl Clone for SessionContext
Source§fn clone(&self) -> SessionContext
fn clone(&self) -> SessionContext
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 moreSource§impl Debug for SessionContext
impl Debug for SessionContext
Source§impl Default for SessionContext
impl Default for SessionContext
Source§fn default() -> SessionContext
fn default() -> SessionContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionContext
impl<'de> Deserialize<'de> for SessionContext
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 SessionContext
Source§impl PartialEq for SessionContext
impl PartialEq for SessionContext
Source§impl Serialize for SessionContext
impl Serialize for SessionContext
impl StructuralPartialEq for SessionContext
Auto Trait Implementations§
impl Freeze for SessionContext
impl RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin for SessionContext
impl UnsafeUnpin for SessionContext
impl UnwindSafe for SessionContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.