pub struct GitLabProvider;Implementations§
Source§impl GitLabProvider
impl GitLabProvider
Sourcepub fn config(
client_id: String,
client_secret: String,
redirect_url: String,
) -> OAuth2Config
pub fn config( client_id: String, client_secret: String, redirect_url: String, ) -> OAuth2Config
Create a new GitLab OAuth2 configuration
pub async fn get_user_info(access_token: &str) -> Result<GitLabUser, AuthError>
Auto Trait Implementations§
impl Freeze for GitLabProvider
impl RefUnwindSafe for GitLabProvider
impl Send for GitLabProvider
impl Sync for GitLabProvider
impl Unpin for GitLabProvider
impl UnwindSafe for GitLabProvider
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
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging