pub struct CredentialsMethod<U: User, D: DeserializeOwned> { /* private fields */ }Implementations§
Source§impl<U: User, D: DeserializeOwned> CredentialsMethod<U, D>
impl<U: User, D: DeserializeOwned> CredentialsMethod<U, D>
pub fn new<C: Credentials<U, D> + 'static>(credentials: C) -> Self
Trait Implementations§
Source§impl<U: User + 'static, D: DeserializeOwned + 'static> ErasedMethod for CredentialsMethod<U, D>
impl<U: User + 'static, D: DeserializeOwned + 'static> ErasedMethod for CredentialsMethod<U, D>
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, D: DeserializeOwned + 'static> Method for CredentialsMethod<U, D>
impl<U: User + 'static, D: DeserializeOwned + 'static> Method for CredentialsMethod<U, D>
type Provider = CredentialsProvider
type Session = ()
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 action_by_id( &self, action_id: &str, ) -> Option<Box<dyn Action<Self::Provider, Self::Session>>>
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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl<U, D> Freeze for CredentialsMethod<U, D>
impl<U, D> !RefUnwindSafe for CredentialsMethod<U, D>
impl<U, D> Send for CredentialsMethod<U, D>
impl<U, D> Sync for CredentialsMethod<U, D>
impl<U, D> Unpin for CredentialsMethod<U, D>
impl<U, D> !UnwindSafe for CredentialsMethod<U, D>
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