pub struct TokenPayload {
pub token: String,
pub scope: GrantScope,
pub max_connections: u32,
pub ticket_hash: Option<String>,
pub expires_at_ms: Option<u64>,
pub audience: Option<String>,
pub nonce: Option<String>,
}Expand description
Decoded token payload embedded in a compound ticket.
Fields§
§token: StringRaw token value.
scope: GrantScopeScope string.
max_connections: u32Max connections (0 = unlimited).
ticket_hash: Option<String>SHA-256 hash of the endpoint ticket this payload was minted for.
expires_at_ms: Option<u64>Absolute Unix-millisecond expiry.
audience: Option<String>Explicit intended consumer for this compact payload.
nonce: Option<String>Per-payload nonce used to distinguish otherwise equivalent grants.
Trait Implementations§
Source§impl Clone for TokenPayload
impl Clone for TokenPayload
Source§impl Debug for TokenPayload
impl Debug for TokenPayload
Source§impl<'de> Deserialize<'de> for TokenPayload
impl<'de> Deserialize<'de> for TokenPayload
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 TokenPayload
impl RefUnwindSafe for TokenPayload
impl Send for TokenPayload
impl Sync for TokenPayload
impl Unpin for TokenPayload
impl UnsafeUnpin for TokenPayload
impl UnwindSafe for TokenPayload
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