pub enum TanKind {
Typed {
media: Option<TanMedia>,
},
Decoupled {
first_wait: Option<Duration>,
next_wait: Option<Duration>,
max_polls: Option<u32>,
polls_done: u32,
auto_polling_allowed: Option<bool>,
},
}Expand description
How the challenge is answered.
Variants§
Typed
The user types a TAN: Dialog::submit_tan. media is the
flicker code or photoTAN/QR image to show, if the challenge has one.
Decoupled
The user confirms in an app: Dialog::poll. The waits and the
poll limit are the bank’s HITANS v7 values (None when it gives
none); polls_done counts the status requests sent so far.
auto_polling_allowed: when Some(false) the caller must not call
Dialog::poll on a timer. The bank then expects the user to
trigger each status request (a button, pressing Enter).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TanKind
impl<'de> Deserialize<'de> for TanKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TanKind
impl StructuralPartialEq for TanKind
Auto Trait Implementations§
impl Forget for TanKind
impl Freeze for TanKind
impl Move for TanKind
impl RefUnwindSafe for TanKind
impl Send for TanKind
impl Sync for TanKind
impl Unpin for TanKind
impl UnsafeUnpin for TanKind
impl UnwindSafe for TanKind
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