pub struct ReturnCode {
pub code: Code,
pub text: String,
pub scope: Scope,
pub reference_element: Option<String>,
pub parameters: Vec<String>,
}Expand description
One code line of HIRMG or HIRMS (“Rückmeldung”), with everything the bank sent in it.
Fields§
§code: CodeThe four-digit code.
text: StringThe bank’s text, to be shown with the code (Formals B.7.5.1).
scope: ScopeThe message (HIRMG) or the customer segment (HIRMS) it refers to.
reference_element: Option<String>“Bezugsdatenelement”: the position of the data element the code refers to, if the bank named one (HIRMS only).
parameters: Vec<String>“Rückmeldungsparameter”, verbatim and in order (up to 10). An empty parameter on the wire is an absent repetition and does not appear.
Implementations§
Source§impl ReturnCode
impl ReturnCode
Sourcepub fn new(code: Code, text: impl Into<String>, scope: Scope) -> Self
pub fn new(code: Code, text: impl Into<String>, scope: Scope) -> Self
A code line without reference element and parameters.
Sourcepub fn with_parameters(self, parameters: Vec<String>) -> Self
pub fn with_parameters(self, parameters: Vec<String>) -> Self
The same code line with these parameters.
Sourcepub fn with_reference_element(self, element: impl Into<String>) -> Self
pub fn with_reference_element(self, element: impl Into<String>) -> Self
The same code line with this reference element.
Trait Implementations§
Source§impl Clone for ReturnCode
impl Clone for ReturnCode
Source§impl Debug for ReturnCode
impl Debug for ReturnCode
Source§impl<'de> Deserialize<'de> for ReturnCode
impl<'de> Deserialize<'de> for ReturnCode
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
Source§impl Display for ReturnCode
impl Display for ReturnCode
impl Eq for ReturnCode
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
Source§impl Serialize for ReturnCode
impl Serialize for ReturnCode
impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Forget for ReturnCode
impl Freeze for ReturnCode
impl Move for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnsafeUnpin for ReturnCode
impl UnwindSafe for ReturnCode
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