pub struct HeaderVersion;Expand description
Replaces an empty or 0 HBCI version in the bank’s HNHBK.
Misbehaviour: in answers that report a global error about our message,
some banks put an empty value or 0 where the HBCI version belongs.
Repair: that element becomes the version we sent
(QuirkContext::hbci_version). Any other value, including a wrong
non-zero one such as 220, is left alone: the caller decides what to do
with a real version mismatch.
Trait Implementations§
Source§impl Clone for HeaderVersion
impl Clone for HeaderVersion
impl Copy for HeaderVersion
Source§impl Debug for HeaderVersion
impl Debug for HeaderVersion
Source§impl Default for HeaderVersion
impl Default for HeaderVersion
Source§impl Quirk for HeaderVersion
impl Quirk for HeaderVersion
Source§fn incoming_raw<'a>(
&self,
msg: &'a [u8],
ctx: &QuirkContext<'_>,
) -> Cow<'a, [u8]>
fn incoming_raw<'a>( &self, msg: &'a [u8], ctx: &QuirkContext<'_>, ) -> Cow<'a, [u8]>
Repair an answer as it arrived, envelope included.
Auto Trait Implementations§
impl Forget for HeaderVersion
impl Freeze for HeaderVersion
impl Move for HeaderVersion
impl RefUnwindSafe for HeaderVersion
impl Send for HeaderVersion
impl Sync for HeaderVersion
impl Unpin for HeaderVersion
impl UnsafeUnpin for HeaderVersion
impl UnwindSafe for HeaderVersion
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