pub struct OAuthProviderConfigBuilder { /* private fields */ }Expand description
Fluent builder for OAuthProviderConfig.
Implementations§
Source§impl OAuthProviderConfigBuilder
impl OAuthProviderConfigBuilder
Set the device authorization endpoint URL.
Sourcepub fn userinfo_url(self, url: impl Into<String>) -> Self
pub fn userinfo_url(self, url: impl Into<String>) -> Self
Set the user info endpoint URL.
Sourcepub fn revocation_url(self, url: impl Into<String>) -> Self
pub fn revocation_url(self, url: impl Into<String>) -> Self
Set the revocation endpoint URL.
Sourcepub fn default_scope(self, scope: impl Into<String>) -> Self
pub fn default_scope(self, scope: impl Into<String>) -> Self
Add a default scope to request.
Sourcepub fn supports_pkce(self, yes: bool) -> Self
pub fn supports_pkce(self, yes: bool) -> Self
Set whether PKCE is supported.
Sourcepub fn supports_refresh(self, yes: bool) -> Self
pub fn supports_refresh(self, yes: bool) -> Self
Set whether refresh tokens are supported.
Sourcepub fn supports_device_flow(self, yes: bool) -> Self
pub fn supports_device_flow(self, yes: bool) -> Self
Set whether device flow is supported.
Sourcepub fn param(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn param(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add a custom parameter to authorization requests.
Sourcepub fn build(self) -> OAuthProviderConfig
pub fn build(self) -> OAuthProviderConfig
Consume the builder and return the finished config.
Trait Implementations§
Source§impl Clone for OAuthProviderConfigBuilder
impl Clone for OAuthProviderConfigBuilder
Source§fn clone(&self) -> OAuthProviderConfigBuilder
fn clone(&self) -> OAuthProviderConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OAuthProviderConfigBuilder
impl RefUnwindSafe for OAuthProviderConfigBuilder
impl Send for OAuthProviderConfigBuilder
impl Sync for OAuthProviderConfigBuilder
impl Unpin for OAuthProviderConfigBuilder
impl UnsafeUnpin for OAuthProviderConfigBuilder
impl UnwindSafe for OAuthProviderConfigBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more