pub struct ResponseCode {
pub kind: ResponseCodeKind,
pub text: String,
}Expand description
A single response code from HIRMG/HIRMS.
All data is typed — the kind field carries any parameters.
Fields§
§kind: ResponseCodeKindClassified response code with typed parameters.
text: StringHuman-readable description from the bank.
Implementations§
Source§impl ResponseCode
impl ResponseCode
Sourcepub fn with_params(code: &str, text: &str, params: Vec<String>) -> Self
pub fn with_params(code: &str, text: &str, params: Vec<String>) -> Self
Create a ResponseCode with parameters.
Sourcepub fn parse_from_segment(seg: &RawSegment) -> Vec<ResponseCode>
pub fn parse_from_segment(seg: &RawSegment) -> Vec<ResponseCode>
Parse response codes from a segment’s DEGs (skip header at index 0).
pub fn is_success(&self) -> bool
pub fn is_warning(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_tan_required(&self) -> bool
pub fn is_touchdown(&self) -> bool
pub fn is_allowed_tan_methods(&self) -> bool
pub fn is_decoupled(&self) -> bool
pub fn is_decoupled_pending(&self) -> bool
pub fn is_pin_wrong(&self) -> bool
pub fn is_general_error(&self) -> bool
pub fn is_locked(&self) -> bool
Trait Implementations§
Source§impl Clone for ResponseCode
impl Clone for ResponseCode
Source§fn clone(&self) -> ResponseCode
fn clone(&self) -> ResponseCode
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 ResponseCode
impl RefUnwindSafe for ResponseCode
impl Send for ResponseCode
impl Sync for ResponseCode
impl Unpin for ResponseCode
impl UnsafeUnpin for ResponseCode
impl UnwindSafe for ResponseCode
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