#[non_exhaustive]pub enum Pending {
Reported(Vec<Transaction>),
NotSent,
Unreadable {
kind: Category,
message: String,
},
}Expand description
What a statement answer says about pending (vorgemerkte) entries. Only
Pending::Reported is a complete list: a caller that deletes stored
pending entries which the bank no longer lists must do so on Reported
only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Reported(Vec<Transaction>)
The answer carried the pending part (camt pending document, MT942)
and it parsed; the entries are marked
TransactionStatus::Pending. Empty when nothing is pending.
NotSent
The answer had no pending part: the bank does not report pending entries in this format, or none for this request.
Unreadable
The bank sent a pending part that did not parse (banks fill MT942 in
ways the grammar does not always accept), or an MT942 whose
:90D:/:90C: counts do not match its bookings (the list would not
be complete; a sum that does not match is only logged); the booked
entries are unaffected. kind
and message are those of the parse error.
Implementations§
Source§impl Pending
impl Pending
Sourcepub fn reported(&self) -> Option<&[Transaction]>
pub fn reported(&self) -> Option<&[Transaction]>
The entries when the list is complete (Pending::Reported).