pub struct OtpService<'a> { /* private fields */ }Expand description
Asynchronous one-time passcode operations.
Implementations§
Source§impl<'a> OtpService<'a>
impl<'a> OtpService<'a>
Sourcepub async fn send(
&self,
params: &SendOtpRequest,
) -> Result<UniResponse<UniMessage>>
pub async fn send( &self, params: &SendOtpRequest, ) -> Result<UniResponse<UniMessage>>
Sends a one-time passcode.
Sourcepub async fn verify(
&self,
params: &VerifyOtpRequest,
) -> Result<UniResponse<VerifyOtpData>>
pub async fn verify( &self, params: &VerifyOtpRequest, ) -> Result<UniResponse<VerifyOtpData>>
Verifies a one-time passcode.
Trait Implementations§
Source§impl<'a> Clone for OtpService<'a>
impl<'a> Clone for OtpService<'a>
Source§fn clone(&self) -> OtpService<'a>
fn clone(&self) -> OtpService<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for OtpService<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OtpService<'a>
impl<'a> !UnwindSafe for OtpService<'a>
impl<'a> Freeze for OtpService<'a>
impl<'a> Send for OtpService<'a>
impl<'a> Sync for OtpService<'a>
impl<'a> Unpin for OtpService<'a>
impl<'a> UnsafeUnpin for OtpService<'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