pub struct GatewaySession {
pub session_id: String,
pub tenant_id: TenantId,
pub created_at_ms: u64,
pub expires_at_ms: u64,
pub subject: Option<String>,
}Expand description
Represents an authenticated client session.
Fields§
§session_id: StringUnique identifier for this session.
tenant_id: TenantIdTenant scope constraint.
created_at_ms: u64When the session was established (Unix epoch ms).
expires_at_ms: u64When the session token expires (Unix epoch ms).
subject: Option<String>Subject derived from client credentials.
Implementations§
Trait Implementations§
Source§impl Clone for GatewaySession
impl Clone for GatewaySession
Source§fn clone(&self) -> GatewaySession
fn clone(&self) -> GatewaySession
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 moreAuto Trait Implementations§
impl Freeze for GatewaySession
impl RefUnwindSafe for GatewaySession
impl Send for GatewaySession
impl Sync for GatewaySession
impl Unpin for GatewaySession
impl UnsafeUnpin for GatewaySession
impl UnwindSafe for GatewaySession
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