pub struct Disable;Expand description
POST /two-factor/disable: turns two-factor off and deletes the secret and backup codes.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for Disable
impl<D: Adapter> Endpoint<D> for Disable
const METHOD: Method = Method::POST
const PATH: &'static str = "/two-factor/disable"
type Access = Authenticated
type Input = PasswordInput
type Output = Status
async fn call( &self, ctx: Ctx<D, Authenticated>, input: PasswordInput, ) -> Result<Status, AuthError>
Auto Trait Implementations§
impl Forget for Disable
impl Freeze for Disable
impl Move for Disable
impl RefUnwindSafe for Disable
impl Send for Disable
impl Sync for Disable
impl Unpin for Disable
impl UnsafeUnpin for Disable
impl UnwindSafe for Disable
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