pub struct DfnsAuthenticator<S> { /* private fields */ }
Implementations§
Source§impl<S> DfnsAuthenticator<S>
impl<S> DfnsAuthenticator<S>
pub fn new(api_options: DfnsAuthenticatorOptions<S>) -> Self
pub async fn login( &self, request: LoginRequest, ) -> Result<LoginResponse, DfnsError>
pub async fn register( &self, request: RegisterRequest, ) -> Result<RegisterResponse, DfnsError>
Auto Trait Implementations§
impl<S> Freeze for DfnsAuthenticator<S>where
S: Freeze,
impl<S> RefUnwindSafe for DfnsAuthenticator<S>where
S: RefUnwindSafe,
impl<S> Send for DfnsAuthenticator<S>where
S: Send,
impl<S> Sync for DfnsAuthenticator<S>where
S: Sync,
impl<S> Unpin for DfnsAuthenticator<S>where
S: Unpin,
impl<S> UnwindSafe for DfnsAuthenticator<S>where
S: UnwindSafe,
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