#[non_exhaustive]pub enum TokenKind {
Agent,
Person,
Auth,
Resource,
}Expand description
The four AAuth token types, by their JWT typ.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Agent
aa-agent+jwt: an agent provider vouches for an agent and binds its key.
Person
aa-person+jwt: a Person Server names the person an agent acts for,
to one resource. Identity, never authorization.
Auth
aa-auth+jwt: what a resource accepts as authorization.
Resource
aa-resource+jwt: a resource asks the Person Server for an auth token.
Implementations§
Trait Implementations§
impl Copy for TokenKind
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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