Struct rocket_oauth2::StaticProvider [−][src]
Expand description
A StaticProvider
contains authorization and token exchange URIs known in
advance, either at compile-time or early in initialization.
If the URIs will change during runtime, implement Provider
for your own
type instead.
Example
use rocket_oauth2::StaticProvider; let provider = StaticProvider { auth_uri: "https://example.com/oauth2/authorize".into(), token_uri: "https://example.com/oauth2/token".into(), };
Fields
auth_uri: Cow<'static, str>
The authorization URI associated with the service provider.
token_uri: Cow<'static, str>
The token exchange URI associated with the service provider.
Implementations
A Provider
suitable for authorizing users with Discord.
A Provider
suitable for authorizing users with Facebook.
A Provider
suitable for authorizing users with GitHub.
A Provider
suitable for authorizing users with Google.
A Provider
suitable for authorizing users with Microsoft.
A Provider
suitable for authorizing users with Reddit.
A Provider
suitable for authorizing users with Wikimedia.
A Provider
suitable for authorizing users with Yahoo.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StaticProvider
impl Send for StaticProvider
impl Sync for StaticProvider
impl Unpin for StaticProvider
impl UnwindSafe for StaticProvider
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V