pub struct SessionClaims {Show 15 fields
pub iss: String,
pub sub: String,
pub aud: String,
pub iat: u64,
pub nbf: u64,
pub exp: u64,
pub jti: String,
pub scope: String,
pub metering_key: String,
pub deployment_id: Option<String>,
pub origin: Option<String>,
pub client_ip: Option<String>,
pub limits: Option<Limits>,
pub plan: Option<String>,
pub key_class: KeyClass,
}Expand description
Session token claims
Fields§
§iss: StringIssuer - who issued this token
sub: StringSubject - who this token is for
aud: StringAudience - intended recipient (e.g., deployment ID)
iat: u64Issued at (Unix timestamp)
nbf: u64Not valid before (Unix timestamp)
exp: u64Expiration time (Unix timestamp)
jti: StringJWT ID - unique identifier for this token
scope: StringScope - permissions granted
metering_key: StringMetering key - for usage attribution
deployment_id: Option<String>Deployment ID (optional)
origin: Option<String>Origin binding (optional, defense-in-depth)
client_ip: Option<String>Client IP binding (optional, for high-security scenarios)
limits: Option<Limits>Resource limits
plan: Option<String>Plan identifier (optional)
key_class: KeyClassKey class (secret vs publishable)
Implementations§
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 · 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