pub struct BankParams {
pub bpd_version: u16,
pub upd_version: u16,
pub bpd_segments: Vec<RawSegment>,
pub upd_segments: Vec<RawSegment>,
pub tan_methods: Vec<TanMethod>,
pub selected_security_function: SecurityFunction,
pub selected_tan_medium: Option<TanMediumName>,
pub accounts_from_upd: Vec<SepaAccount>,
pub operation_tan_required: HashMap<SegmentType, bool>,
pub allowed_security_functions: Vec<SecurityFunction>,
pub preferred_security_function: Option<SecurityFunction>,
}Expand description
Cached bank and user parameters discovered during sync/init.
Fields§
§bpd_version: u16§upd_version: u16§bpd_segments: Vec<RawSegment>§upd_segments: Vec<RawSegment>§tan_methods: Vec<TanMethod>§selected_security_function: SecurityFunction§selected_tan_medium: Option<TanMediumName>§accounts_from_upd: Vec<SepaAccount>§operation_tan_required: HashMap<SegmentType, bool>§allowed_security_functions: Vec<SecurityFunction>§preferred_security_function: Option<SecurityFunction>Implementations§
Source§impl BankParams
impl BankParams
pub fn new() -> Self
Sourcepub fn ingest_response(&mut self, response: &Response, system_id: &mut SystemId)
pub fn ingest_response(&mut self, response: &Response, system_id: &mut SystemId)
Ingest BPD/UPD/HITANS/HIPINS/HISYN from a response.
Sourcepub fn needs_tan(&self, segment_type: &SegmentType) -> bool
pub fn needs_tan(&self, segment_type: &SegmentType) -> bool
Does the given operation require TAN (per HIPINS)? Default: true (safe).
Sourcepub fn hktan_version(&self) -> u16
pub fn hktan_version(&self) -> u16
HKTAN version for the selected TAN method.
Sourcepub fn supported_version(
&self,
param_segment_type: &str,
max_version: u16,
) -> u16
pub fn supported_version( &self, param_segment_type: &str, max_version: u16, ) -> u16
Highest supported version for a segment type in BPD.
Sourcepub fn select_security_function(&mut self)
pub fn select_security_function(&mut self)
Select the best security function from 3920 allowed list.
pub fn is_decoupled(&self) -> bool
pub fn needs_tan_medium(&self) -> bool
pub fn decoupled_params(&self) -> (u64, u64, u32)
Trait Implementations§
Source§impl Clone for BankParams
impl Clone for BankParams
Source§fn clone(&self) -> BankParams
fn clone(&self) -> BankParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BankParams
impl RefUnwindSafe for BankParams
impl Send for BankParams
impl Sync for BankParams
impl Unpin for BankParams
impl UnsafeUnpin for BankParams
impl UnwindSafe for BankParams
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