pub struct GenericBank { /* private fields */ }Expand description
A generic FinTS bank implementation that works with any BankConfig. Used when the bank ID is not in the registry (e.g. custom URL + BLZ).
Implementations§
Source§impl GenericBank
impl GenericBank
pub fn new(config: BankConfig) -> Self
Trait Implementations§
Source§impl BankOps for GenericBank
impl BankOps for GenericBank
fn config(&self) -> &BankConfig
Source§async fn initiate(
&self,
username: &UserId,
pin: &Pin,
product_id: &ProductId,
system_id: Option<&SystemId>,
_target_iban: Option<&Iban>,
_target_bic: Option<&Bic>,
) -> Result<InitiateOutcome>
async fn initiate( &self, username: &UserId, pin: &Pin, product_id: &ProductId, system_id: Option<&SystemId>, _target_iban: Option<&Iban>, _target_bic: Option<&Bic>, ) -> Result<InitiateOutcome>
Phase 1: sync + init, return TAN challenge or authenticated dialog.
Source§async fn fetch(
&self,
dialog: &mut Dialog<Open>,
account: &Account,
days: u32,
) -> Result<FetchResult>
async fn fetch( &self, dialog: &mut Dialog<Open>, account: &Account, days: u32, ) -> Result<FetchResult>
Phase 2: fetch balance + transactions from an open dialog.
Takes
&Account — IBAN and BIC are guaranteed present.Source§async fn fetch_holdings(
&self,
dialog: &mut Dialog<Open>,
account: &Account,
) -> Result<Vec<SecurityHolding>>
async fn fetch_holdings( &self, dialog: &mut Dialog<Open>, account: &Account, ) -> Result<Vec<SecurityHolding>>
Fetch securities holdings from an open dialog.
Takes
&Account — IBAN and BIC are guaranteed present.
Returns an empty Vec if the bank does not support depot queries.Auto Trait Implementations§
impl Freeze for GenericBank
impl RefUnwindSafe for GenericBank
impl Send for GenericBank
impl Sync for GenericBank
impl Unpin for GenericBank
impl UnsafeUnpin for GenericBank
impl UnwindSafe for GenericBank
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