pub enum SessionSource {
Agent,
TokenClaim,
Identity,
}Expand description
Which tier produced the session id. Useful for diagnostics / audit
and to let downstream code branch on binding strength (e.g., only
trust token_claim-derived sessions for the highest-stakes
operations).
Variants§
Agent
Pre-resolved by an upstream plugin via AgentExtension.session_id.
Highest priority — represents an authoritative decision.
TokenClaim
JWT session_id claim — strongest binding among derived tiers.
Identity
Derived from the identity triple. Stable across token refresh.
Implementations§
Trait Implementations§
Source§impl Clone for SessionSource
impl Clone for SessionSource
Source§fn clone(&self) -> SessionSource
fn clone(&self) -> SessionSource
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 moreimpl Copy for SessionSource
Source§impl Debug for SessionSource
impl Debug for SessionSource
impl Eq for SessionSource
Source§impl PartialEq for SessionSource
impl PartialEq for SessionSource
impl StructuralPartialEq for SessionSource
Auto Trait Implementations§
impl Freeze for SessionSource
impl RefUnwindSafe for SessionSource
impl Send for SessionSource
impl Sync for SessionSource
impl Unpin for SessionSource
impl UnsafeUnpin for SessionSource
impl UnwindSafe for SessionSource
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,
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.