pub struct Enable(/* private fields */);Expand description
POST /two-factor/enable: a new TOTP secret and backup codes, replacing any old ones.
Two-factor turns on after the first verify-totp, or at once with
skip_verification_on_enable.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for Enable
impl<D: Adapter> Endpoint<D> for Enable
const METHOD: Method = Method::POST
const PATH: &'static str = "/two-factor/enable"
type Access = Authenticated
type Input = EnableInput
type Output = EnableOutput
async fn call( &self, ctx: Ctx<D, Authenticated>, input: EnableInput, ) -> Result<EnableOutput, AuthError>
Auto Trait Implementations§
impl Forget for Enable
impl Freeze for Enable
impl Move for Enable
impl RefUnwindSafe for Enable
impl Send for Enable
impl Sync for Enable
impl Unpin for Enable
impl UnsafeUnpin for Enable
impl UnwindSafe for Enable
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