pub struct WorkosMethod { /* private fields */ }Implementations§
Source§impl WorkosMethod
impl WorkosMethod
pub fn new(client: WorkOs, client_id: &str, options: WorkosOptions) -> Self
pub fn from_api_key( api_key: &str, client_id: &str, options: WorkosOptions, ) -> Self
pub fn with_options(self, options: WorkosOptions) -> Self
Trait Implementations§
Source§impl ErasedMethod for WorkosMethod
impl ErasedMethod for WorkosMethod
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 Method for WorkosMethod
impl Method for WorkosMethod
type Provider = WorkosProvider
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 Freeze for WorkosMethod
impl !RefUnwindSafe for WorkosMethod
impl Send for WorkosMethod
impl Sync for WorkosMethod
impl Unpin for WorkosMethod
impl UnsafeUnpin for WorkosMethod
impl !UnwindSafe for WorkosMethod
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