pub struct Exchange {
pub request: Vec<u8>,
pub response: Vec<u8>,
pub error: Option<String>,
pub account: Option<String>,
pub notes: Vec<String>,
}Available on crate feature
trace only.Expand description
One request and its response, as wire bytes (ISO 8859-1, with the PIN/TAN envelope), redacted; or the request and the error that ended it.
Fields§
§request: Vec<u8>The customer message.
response: Vec<u8>The bank’s answer; empty if error is set.
error: Option<String>Short summary of why the exchange failed (HTTP 500,
transport: ...), never message content.
account: Option<String>The alias (#1, #2, …) of the account the request is about, one of
Trace::accounts; set by the Recorder.
notes: Vec<String>What this client made of the answer, without any value of it: a
segment its definition could not read (code, version, field, kind of
error) and statements with characters outside the SWIFT character
set. Written by the Recorder from the answer before masking.
Trait Implementations§
impl Eq for Exchange
impl StructuralPartialEq for Exchange
Auto Trait Implementations§
impl Forget for Exchange
impl Freeze for Exchange
impl Move for Exchange
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnsafeUnpin for Exchange
impl UnwindSafe for Exchange
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