Struct telescope::api::rcos::auth::ApiJwtClaims [−][src]
pub struct ApiJwtClaims {
iss: &'static str,
sub: Option<String>,
iat: i64,
hasura_claims: HasuraJwtClaims,
}
Expand description
JWT Claims used to authenticate with the central RCOS API.
Fields
iss: &'static str
Who issued the JWY token. This should always be “telescope”.
sub: Option<String>
The subject of the JWT. This is the user that the claim is for. May be none.
iat: i64
When the claim was issued. This should be the UNIX time (number of seconds since the epoch) when the JWT was issued.
hasura_claims: HasuraJwtClaims
Claims required by hasura.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ApiJwtClaims
impl Send for ApiJwtClaims
impl Sync for ApiJwtClaims
impl Unpin for ApiJwtClaims
impl UnwindSafe for ApiJwtClaims
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more