pub struct Flow { /* private fields */ }Implementations§
Source§impl Flow
impl Flow
Sourcepub async fn initiate_with_bank(
bank: AnyBank,
username: &UserId,
pin: &Pin,
product_id: &ProductId,
system_id: Option<&SystemId>,
target_iban: Option<&Iban>,
target_bic: Option<&Bic>,
) -> Result<(Self, ChallengeInfo)>
pub async fn initiate_with_bank( bank: AnyBank, username: &UserId, pin: &Pin, product_id: &ProductId, system_id: Option<&SystemId>, target_iban: Option<&Iban>, target_bic: Option<&Bic>, ) -> Result<(Self, ChallengeInfo)>
Step 1: initiate connection using an already-resolved AnyBank. Use this when you have a custom BankConfig (e.g. non-registry banks).
Sourcepub async fn initiate(
bank_id: &str,
username: &UserId,
pin: &Pin,
product_id: &ProductId,
system_id: Option<&SystemId>,
target_iban: Option<&Iban>,
target_bic: Option<&Bic>,
) -> Result<(Self, ChallengeInfo)>
pub async fn initiate( bank_id: &str, username: &UserId, pin: &Pin, product_id: &ProductId, system_id: Option<&SystemId>, target_iban: Option<&Iban>, target_bic: Option<&Bic>, ) -> Result<(Self, ChallengeInfo)>
Step 1: initiate connection, get TAN challenge.
Sourcepub async fn confirm_and_fetch(
&mut self,
iban: &str,
bic: &str,
days: u32,
) -> Result<SyncResult>
pub async fn confirm_and_fetch( &mut self, iban: &str, bic: &str, days: u32, ) -> Result<SyncResult>
Step 2: confirm TAN and fetch everything (balance + transactions + holdings).
Equivalent to confirm_and_fetch_opts(iban, bic, FetchOpts::all(days)).
Sourcepub async fn confirm_and_fetch_opts(
&mut self,
iban: &str,
bic: &str,
opts: &FetchOpts,
) -> Result<SyncResult>
pub async fn confirm_and_fetch_opts( &mut self, iban: &str, bic: &str, opts: &FetchOpts, ) -> Result<SyncResult>
Step 2 with fine-grained fetch control.
Use FetchOpts to choose which data to retrieve in a single dialog.
Sourcepub async fn confirm_and_fetch_holdings(
&mut self,
iban: &str,
bic: &str,
) -> Result<Vec<SecurityHolding>>
pub async fn confirm_and_fetch_holdings( &mut self, iban: &str, bic: &str, ) -> Result<Vec<SecurityHolding>>
Step 2 (alternative): confirm TAN and fetch only securities holdings.
pub fn system_id(&self) -> &SystemId
Auto Trait Implementations§
impl Freeze for Flow
impl !RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl !UnwindSafe for Flow
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