pub struct VerifyOtp(/* private fields */);Expand description
POST /two-factor/verify-otp: checks an emailed code. Five wrong codes burn it.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for VerifyOtp
impl<D: Adapter> Endpoint<D> for VerifyOtp
const METHOD: Method = Method::POST
const PATH: &'static str = "/two-factor/verify-otp"
type Access = MaybeAuthenticated
type Input = VerifyInput
type Output = VerifyOutput
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: VerifyInput, ) -> Result<VerifyOutput, AuthError>
Auto Trait Implementations§
impl Forget for VerifyOtp
impl Freeze for VerifyOtp
impl Move for VerifyOtp
impl RefUnwindSafe for VerifyOtp
impl Send for VerifyOtp
impl Sync for VerifyOtp
impl Unpin for VerifyOtp
impl UnsafeUnpin for VerifyOtp
impl UnwindSafe for VerifyOtp
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