pub struct GetTotpUri(/* private fields */);Expand description
POST /two-factor/get-totp-uri: the current secret’s URI, for showing the QR code again.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for GetTotpUri
impl<D: Adapter> Endpoint<D> for GetTotpUri
const METHOD: Method = Method::POST
const PATH: &'static str = "/two-factor/get-totp-uri"
type Access = Authenticated
type Input = PasswordInput
type Output = TotpUriOutput
async fn call( &self, ctx: Ctx<D, Authenticated>, input: PasswordInput, ) -> Result<TotpUriOutput, AuthError>
Auto Trait Implementations§
impl Forget for GetTotpUri
impl Freeze for GetTotpUri
impl Move for GetTotpUri
impl RefUnwindSafe for GetTotpUri
impl Send for GetTotpUri
impl Sync for GetTotpUri
impl Unpin for GetTotpUri
impl UnsafeUnpin for GetTotpUri
impl UnwindSafe for GetTotpUri
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