pub struct BankConfig {
pub name: BankName,
pub blz: Blz,
pub bic: Bic,
pub url: FinTSUrl,
pub profile: BankProfile,
}Expand description
Configuration for a known bank.
Fields§
§name: BankName§blz: Blz§bic: Bic§url: FinTSUrl§profile: BankProfileWhat this bank does differently; generic for most banks.
Implementations§
Source§impl BankConfig
impl BankConfig
Sourcepub fn new(
name: impl Into<String>,
blz: impl Into<String>,
bic: impl Into<String>,
url: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, blz: impl Into<String>, bic: impl Into<String>, url: impl Into<String>, ) -> Self
A bank with the generic profile. For a bank in the directory use
bank_by_blz (and BankConfig::with_url for another endpoint),
which keeps the bank’s profile.
Sourcepub fn with_url(self, url: impl Into<String>) -> Self
pub fn with_url(self, url: impl Into<String>) -> Self
The same bank at another endpoint (a recording proxy, a replay, a test server); the profile stays.
Sourcepub fn with_profile(self, profile: BankProfile) -> Self
pub fn with_profile(self, profile: BankProfile) -> Self
Replace the profile.
Sourcepub fn with_tan_override(self, code: &str, rule: TanOverride) -> Self
pub fn with_tan_override(self, code: &str, rule: TanOverride) -> Self
Fix whether HKTAN is sent with the order code (e.g. HKSAL).
Trait Implementations§
Source§impl Clone for BankConfig
impl Clone for BankConfig
Source§impl Debug for BankConfig
impl Debug for BankConfig
Source§impl<'de> Deserialize<'de> for BankConfig
impl<'de> Deserialize<'de> for BankConfig
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
Auto Trait Implementations§
impl Forget for BankConfig
impl Freeze for BankConfig
impl Move for BankConfig
impl RefUnwindSafe for BankConfig
impl Send for BankConfig
impl Sync for BankConfig
impl Unpin for BankConfig
impl UnsafeUnpin for BankConfig
impl UnwindSafe for BankConfig
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