pub struct GoogleProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl SocialProvider for GoogleProvider
impl SocialProvider for GoogleProvider
Source§fn get_redirect_url(&self) -> String
fn get_redirect_url(&self) -> String
Mendapatkan URL untuk redirect user ke provider OAuth.
Source§fn get_user_by_code<'life0, 'async_trait>(
&'life0 self,
code: String,
) -> Pin<Box<dyn Future<Output = Result<SocialUser, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
GoogleProvider: 'async_trait,
fn get_user_by_code<'life0, 'async_trait>(
&'life0 self,
code: String,
) -> Pin<Box<dyn Future<Output = Result<SocialUser, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
GoogleProvider: 'async_trait,
Menangani callback dari provider dan mendapatkan data user.
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleProvider
impl !UnwindSafe for GoogleProvider
impl Forget for GoogleProvider
impl Freeze for GoogleProvider
impl Move for GoogleProvider
impl Send for GoogleProvider
impl Sync for GoogleProvider
impl Unpin for GoogleProvider
impl UnsafeUnpin for GoogleProvider
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> 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