pub struct TokenApi<'a> { /* private fields */ }
Expand description
Interact with the Token API
Implementations§
Source§impl<'a> TokenApi<'a>
impl<'a> TokenApi<'a>
Sourcepub async fn request(&self, provider: &str) -> Result<Response, Error>
pub async fn request(&self, provider: &str) -> Result<Response, Error>
The request action is required for some token in order to send the user the token. For example the email token will send an email to the users mail account. It is recommended to only call this action if the user has chosen that token, not just trigger it for all available tokens.
Auto Trait Implementations§
impl<'a> Freeze for TokenApi<'a>
impl<'a> !RefUnwindSafe for TokenApi<'a>
impl<'a> Send for TokenApi<'a>
impl<'a> Sync for TokenApi<'a>
impl<'a> Unpin for TokenApi<'a>
impl<'a> !UnwindSafe for TokenApi<'a>
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