Struct telescope::api::rcos::auth::HasuraJwtClaims [−][src]
struct HasuraJwtClaims {
allowed_roles: Vec<&'static str>,
default_role: &'static str,
user_id: Option<String>,
}
Expand description
JWT Claims in the Hasura namespace.
Fields
allowed_roles: Vec<&'static str>
The roles this user is allowed to use.
default_role: &'static str
The role that this user should use if no different one is passed in the
x-hasura-role
request header.
user_id: Option<String>
The user ID. This should match the one in the top level of the JWT token.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HasuraJwtClaims
impl Send for HasuraJwtClaims
impl Sync for HasuraJwtClaims
impl Unpin for HasuraJwtClaims
impl UnwindSafe for HasuraJwtClaims
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