pub struct OauthMethod<U: User> { /* private fields */ }Implementations§
Source§impl<U: User> OauthMethod<U>
impl<U: User> OauthMethod<U>
pub fn new<S: OauthStorage<U> + 'static>(storage: S) -> Self
pub fn with_options(self, options: OauthOptions) -> Self
pub fn with_providers<I: IntoIterator<Item = OauthProvider>>( self, providers: I, ) -> Self
Trait Implementations§
Source§impl<U: User + 'static> ErasedMethod for OauthMethod<U>
impl<U: User + 'static> ErasedMethod for OauthMethod<U>
fn erased_id(&self) -> String
fn erased_actions(&self) -> Vec<Box<dyn ErasedAction>>
fn erased_action_by_id(&self, action_id: &str) -> Option<Box<dyn ErasedAction>>
fn erased_providers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(Option<String>, Box<dyn Any + Send + Sync>)>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn erased_provider_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn Any + Send + Sync>>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn erased_deserialize_session( &self, value: Option<&str>, ) -> Result<Box<dyn Any + Send + Sync>, SessionError>
Source§impl<U: User + 'static> Method for OauthMethod<U>
impl<U: User + 'static> Method for OauthMethod<U>
type Provider = OauthProvider
type Session = OauthSession
fn id(&self) -> String
fn actions(&self) -> Vec<Box<dyn Action<Self::Provider, Self::Session>>>
fn providers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Provider>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn provider_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Provider>, ShieldError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn action_by_id( &self, action_id: &str, ) -> Option<Box<dyn Action<Self::Provider, Self::Session>>>
Auto Trait Implementations§
impl<U> Freeze for OauthMethod<U>
impl<U> !RefUnwindSafe for OauthMethod<U>
impl<U> Send for OauthMethod<U>
impl<U> Sync for OauthMethod<U>
impl<U> Unpin for OauthMethod<U>
impl<U> !UnwindSafe for OauthMethod<U>
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