pub struct AuthBuilder { /* private fields */ }Implementations§
Source§impl AuthBuilder
impl AuthBuilder
Sourcepub fn with_persistence(
self,
persistence: Arc<dyn AuthPersistence + Send + Sync>,
) -> Self
pub fn with_persistence( self, persistence: Arc<dyn AuthPersistence + Send + Sync>, ) -> Self
Overrides the persistence backend used by the Auth instance.
Sourcepub fn with_popup_handler(self, handler: Arc<dyn OAuthPopupHandler>) -> Self
pub fn with_popup_handler(self, handler: Arc<dyn OAuthPopupHandler>) -> Self
Installs a popup handler prior to building the Auth instance.
Sourcepub fn with_redirect_handler(
self,
handler: Arc<dyn OAuthRedirectHandler>,
) -> Self
pub fn with_redirect_handler( self, handler: Arc<dyn OAuthRedirectHandler>, ) -> Self
Installs a redirect handler prior to building the Auth instance.
Sourcepub fn with_oauth_request_uri(self, request_uri: impl Into<String>) -> Self
pub fn with_oauth_request_uri(self, request_uri: impl Into<String>) -> Self
Overrides the default OAuth request URI before building.
Sourcepub fn with_redirect_persistence(
self,
persistence: Arc<dyn RedirectPersistence>,
) -> Self
pub fn with_redirect_persistence( self, persistence: Arc<dyn RedirectPersistence>, ) -> Self
Configures the redirect persistence implementation used post-build.
Sourcepub fn with_identity_toolkit_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn with_identity_toolkit_endpoint(self, endpoint: impl Into<String>) -> Self
Overrides the Identity Toolkit endpoint used by the Auth instance.
Sourcepub fn with_secure_token_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn with_secure_token_endpoint(self, endpoint: impl Into<String>) -> Self
Overrides the Secure Token endpoint used for refresh operations.
Sourcepub fn defer_initialization(self) -> Self
pub fn defer_initialization(self) -> Self
Prevents build from automatically calling initialize.
Sourcepub fn build(self) -> AuthResult<Arc<Auth>>
pub fn build(self) -> AuthResult<Arc<Auth>>
Builds the Auth instance, applying all configured overrides.
Auto Trait Implementations§
impl Freeze for AuthBuilder
impl !RefUnwindSafe for AuthBuilder
impl Send for AuthBuilder
impl Sync for AuthBuilder
impl Unpin for AuthBuilder
impl !UnwindSafe for AuthBuilder
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