pub struct Connect;Expand description
The main entry point for the rullst-connect library.
Implementations§
Source§impl Connect
impl Connect
Sourcepub fn driver(
name: &str,
client_id: String,
client_secret: SecretString,
redirect_url: String,
) -> Result<Box<dyn Provider>, ConnectError>
pub fn driver( name: &str, client_id: String, client_secret: SecretString, redirect_url: String, ) -> Result<Box<dyn Provider>, ConnectError>
Factory method to dynamically instantiate an OAuth provider by name.
Available providers (case-insensitive): “github”, “google”, “facebook”, “gitlab”, “discord”, “linkedin”, “x”, “microsoft”
Note: Providers requiring specialized configuration (like Apple, Auth0, Cognito, and Okta) must be instantiated manually.
Auto Trait Implementations§
impl Freeze for Connect
impl RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl UnsafeUnpin for Connect
impl UnwindSafe for Connect
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