pub struct Response {
pub segments: Vec<RawSegment>,
pub global_codes: Vec<ResponseCode>,
pub segment_codes: Vec<ResponseCode>,
}Expand description
Parsed response from the bank after sending a message.
Fields§
§segments: Vec<RawSegment>All segments from the response (including inner HNVSD segments).
global_codes: Vec<ResponseCode>Global response codes (from HIRMG).
segment_codes: Vec<ResponseCode>Segment-specific response codes (from HIRMS).
Implementations§
Source§impl Response
impl Response
pub fn find_segments(&self, seg_type: &str) -> Vec<&RawSegment>
pub fn find_segment(&self, seg_type: &str) -> Option<&RawSegment>
pub fn all_codes(&self) -> impl Iterator<Item = &ResponseCode>
Sourcepub fn is_decoupled(&self) -> bool
pub fn is_decoupled(&self) -> bool
3955 = decoupled TAN (pushTAN initiated).
Sourcepub fn is_decoupled_pending(&self) -> bool
pub fn is_decoupled_pending(&self) -> bool
3955/3956 = decoupled TAN still pending.
Sourcepub fn has_sca_exemption(&self) -> bool
pub fn has_sca_exemption(&self) -> bool
3076 = no strong authentication required (SCA exemption).
Sourcepub fn touchdown(&self) -> Option<TouchdownPoint>
pub fn touchdown(&self) -> Option<TouchdownPoint>
3040 = more data available (touchdown/pagination). Returns the touchdown point if found.
Sourcepub fn get_tan_challenge(&self) -> Option<TanChallenge>
pub fn get_tan_challenge(&self) -> Option<TanChallenge>
Extract HITAN challenge from response.
Sourcepub fn check_errors(&self) -> Result<()>
pub fn check_errors(&self) -> Result<()>
Check for fatal errors. Returns Ok(()) if no errors.
Sourcepub fn allowed_security_functions(&self) -> Vec<SecurityFunction>
pub fn allowed_security_functions(&self) -> Vec<SecurityFunction>
Extract allowed TAN security functions from code 3920.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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