pub struct GenerateBackupCodes(/* private fields */);Expand description
POST /two-factor/generate-backup-codes: replaces every backup code with new ones.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for GenerateBackupCodes
impl<D: Adapter> Endpoint<D> for GenerateBackupCodes
const METHOD: Method = Method::POST
const PATH: &'static str = "/two-factor/generate-backup-codes"
type Access = Authenticated
type Input = PasswordInput
type Output = BackupCodesOutput
async fn call( &self, ctx: Ctx<D, Authenticated>, input: PasswordInput, ) -> Result<BackupCodesOutput, AuthError>
Auto Trait Implementations§
impl Forget for GenerateBackupCodes
impl Freeze for GenerateBackupCodes
impl Move for GenerateBackupCodes
impl RefUnwindSafe for GenerateBackupCodes
impl Send for GenerateBackupCodes
impl Sync for GenerateBackupCodes
impl Unpin for GenerateBackupCodes
impl UnsafeUnpin for GenerateBackupCodes
impl UnwindSafe for GenerateBackupCodes
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