pub struct OidcOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> OidcOptionsBuilder<S>
impl<S: State> OidcOptionsBuilder<S>
Sourcepub fn build(self) -> OidcOptionswhere
S: IsComplete,
pub fn build(self) -> OidcOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn sign_in_redirect(
self,
value: impl Into<String>,
) -> OidcOptionsBuilder<SetSignInRedirect<S>>where
S::SignInRedirect: IsUnset,
pub fn sign_in_redirect(
self,
value: impl Into<String>,
) -> OidcOptionsBuilder<SetSignInRedirect<S>>where
S::SignInRedirect: IsUnset,
Sourcepub fn maybe_sign_in_redirect(
self,
value: Option<impl Into<String>>,
) -> OidcOptionsBuilder<SetSignInRedirect<S>>where
S::SignInRedirect: IsUnset,
pub fn maybe_sign_in_redirect(
self,
value: Option<impl Into<String>>,
) -> OidcOptionsBuilder<SetSignInRedirect<S>>where
S::SignInRedirect: IsUnset,
Sourcepub fn redirect_origins(
self,
iter: impl IntoIterator<Item = Url>,
) -> OidcOptionsBuilder<SetRedirectOrigins<S>>where
S::RedirectOrigins: IsUnset,
pub fn redirect_origins(
self,
iter: impl IntoIterator<Item = Url>,
) -> OidcOptionsBuilder<SetRedirectOrigins<S>>where
S::RedirectOrigins: IsUnset,
Sourcepub fn maybe_redirect_origins(
self,
value: Option<impl IntoIterator<Item = Url>>,
) -> OidcOptionsBuilder<SetRedirectOrigins<S>>where
S::RedirectOrigins: IsUnset,
pub fn maybe_redirect_origins(
self,
value: Option<impl IntoIterator<Item = Url>>,
) -> OidcOptionsBuilder<SetRedirectOrigins<S>>where
S::RedirectOrigins: IsUnset,
Sourcepub fn redirect_patterns(
self,
iter: impl IntoIterator<Item = Regex>,
) -> OidcOptionsBuilder<SetRedirectPatterns<S>>where
S::RedirectPatterns: IsUnset,
pub fn redirect_patterns(
self,
iter: impl IntoIterator<Item = Regex>,
) -> OidcOptionsBuilder<SetRedirectPatterns<S>>where
S::RedirectPatterns: IsUnset,
Sourcepub fn maybe_redirect_patterns(
self,
value: Option<impl IntoIterator<Item = Regex>>,
) -> OidcOptionsBuilder<SetRedirectPatterns<S>>where
S::RedirectPatterns: IsUnset,
pub fn maybe_redirect_patterns(
self,
value: Option<impl IntoIterator<Item = Regex>>,
) -> OidcOptionsBuilder<SetRedirectPatterns<S>>where
S::RedirectPatterns: IsUnset,
Auto Trait Implementations§
impl<S> Forget for OidcOptionsBuilder<S>
impl<S> Freeze for OidcOptionsBuilder<S>where
PhantomData<(fn() -> S, fn() -> PhantomData<OidcOptions>)>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Url>: Freeze,
PhantomData<Regex>: Freeze,
impl<S> Move for OidcOptionsBuilder<S>
impl<S> RefUnwindSafe for OidcOptionsBuilder<S>where
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + UnwindSafe + RefUnwindSafe + Send>>: RefUnwindSafe,
impl<S> Send for OidcOptionsBuilder<S>
impl<S> Sync for OidcOptionsBuilder<S>
impl<S> Unpin for OidcOptionsBuilder<S>
impl<S> UnsafeUnpin for OidcOptionsBuilder<S>where
PhantomData<(fn() -> S, fn() -> PhantomData<OidcOptions>)>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Url>: UnsafeUnpin,
PhantomData<Regex>: UnsafeUnpin,
impl<S> UnwindSafe for OidcOptionsBuilder<S>where
RawVecInner: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + UnwindSafe + RefUnwindSafe + Send>>>: UnwindSafe,
Arc<str>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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