Enum oxide_auth::primitives::issuer::TokenType[][src]

#[non_exhaustive]
pub enum TokenType {
    Bearer,
}
Expand description

The type of token, describing proper usage.

There is one other interesting type that is not yet formally specified: The MAC token, see draft-ietf-oauth-v2-http-mac-02. The draft has long been expired but for the unlikely case there are others, the enum exist. You might patch this to try out another token type before proposing it for standardization.

In other context (RFC 8693) the explicitly non-access-token kind N_A also exists but this is not a possible response.

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.
Bearer

A bearer token used on its own in an Authorization header.

For this variant and its usage see RFC 6750.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.