[−][src]Struct rocket_oauth2::StaticProvider
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
impl StaticProvider
[src]
pub const Discord: StaticProvider
[src]
A Provider
suitable for authorizing users with Discord.
pub const Facebook: StaticProvider
[src]
A Provider
suitable for authorizing users with Facebook.
pub const GitHub: StaticProvider
[src]
A Provider
suitable for authorizing users with GitHub.
pub const Google: StaticProvider
[src]
A Provider
suitable for authorizing users with Google.
pub const Microsoft: StaticProvider
[src]
A Provider
suitable for authorizing users with Microsoft.
pub const Reddit: StaticProvider
[src]
A Provider
suitable for authorizing users with Reddit.
pub const Wikimedia: StaticProvider
[src]
A Provider
suitable for authorizing users with Wikimedia.
pub const Yahoo: StaticProvider
[src]
A Provider
suitable for authorizing users with Yahoo.
Trait Implementations
impl Clone for StaticProvider
[src]
fn clone(&self) -> StaticProvider
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StaticProvider
[src]
impl Eq for StaticProvider
[src]
impl Hash for StaticProvider
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<StaticProvider> for StaticProvider
[src]
fn eq(&self, other: &StaticProvider) -> bool
[src]
fn ne(&self, other: &StaticProvider) -> bool
[src]
impl Provider for StaticProvider
[src]
impl StructuralEq for StaticProvider
[src]
impl StructuralPartialEq for StaticProvider
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,