pub struct SessionClaims {
pub member: String,
pub project_id: String,
pub created: DateTime<Utc>,
pub expires: DateTime<Utc>,
pub token_key: Option<String>,
pub session_public_key: Option<String>,
pub tty: Option<String>,
}Expand description
Claims encoded in a session token.
Fields§
§member: String§project_id: String§created: DateTime<Utc>§expires: DateTime<Utc>§token_key: Option<String>For AI sessions: the delegation_key this session was bound to at creation.
Rotating the delegation invalidates the session. Field name kept as
token_key for on-disk compatibility with already-written sessions.
session_public_key: Option<String>For AI sessions (ADR-033): the ephemeral public key whose matching
private key lives only in the JOY_SESSION env var. Validation
requires the caller to possess that private key, binding the session
to the terminal environment it was created in.
tty: Option<String>Terminal device at session creation (e.g. “/dev/pts/1”). Human sessions are only valid from the same terminal.
Trait Implementations§
Source§impl Clone for SessionClaims
impl Clone for SessionClaims
Source§fn clone(&self) -> SessionClaims
fn clone(&self) -> SessionClaims
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 SessionClaims
impl Debug for SessionClaims
Source§impl<'de> Deserialize<'de> for SessionClaims
impl<'de> Deserialize<'de> for SessionClaims
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
Auto Trait Implementations§
impl Freeze for SessionClaims
impl RefUnwindSafe for SessionClaims
impl Send for SessionClaims
impl Sync for SessionClaims
impl Unpin for SessionClaims
impl UnsafeUnpin for SessionClaims
impl UnwindSafe for SessionClaims
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