pub enum Session {
WaitingForTan {
dialog: Dialog<TanPending>,
task_reference: TaskReference,
bank: Dkb,
system_id: SystemId,
},
Ready {
dialog: Dialog<Open>,
bank: Dkb,
system_id: SystemId,
},
}Expand description
A DKB session in progress. Wraps the dialog state machine.
Variants§
Implementations§
Source§impl Session
impl Session
Sourcepub async fn fetch(self, account: &Account, days: u32) -> Result<FetchResult>
pub async fn fetch(self, account: &Account, days: u32) -> Result<FetchResult>
Fetch balance and transactions for an account.
Takes &Account — IBAN and BIC are guaranteed present at compile time.
If TAN is pending (pushTAN), this polls the bank first.
Returns Err with “TAN still pending” if not yet confirmed — retry after waiting.
On success, the dialog is closed and the session is consumed.
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl !UnwindSafe for Session
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