Skip to main content

Transaction

Struct Transaction 

Source
#[non_exhaustive]
pub struct Transaction {
Show 23 fields pub entry_reference: Option<String>, pub batch: Option<BatchData>, pub booking_date: Option<NaiveDate>, pub value_date: Option<NaiveDate>, pub transaction_date: Option<NaiveDate>, pub status: TransactionStatus, pub account_servicer_reference: Option<String>, pub payment_id: Option<String>, pub transaction_id: Option<String>, pub end_to_end_id: Option<String>, pub mandate_id: Option<String>, pub creditor_id: Option<String>, pub amount: Amount, pub reversal: bool, pub original_amount: Option<Amount>, pub exchanges: Vec<ExchangeRate>, pub fees: Vec<Fee>, pub creditor: Option<Party>, pub debtor: Option<Party>, pub remittance_information: Vec<String>, pub purpose_code: Option<String>, pub bank_transaction_codes: Vec<BankTransactionCode>, pub additional_information: Option<String>,
}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§entry_reference: Option<String>

Identifier used for delta requests.

§batch: Option<BatchData>§booking_date: Option<NaiveDate>

Booking date (ASPSP’s books).

§value_date: Option<NaiveDate>

Value date. Expected / requested value date in case of pending entries.

§transaction_date: Option<NaiveDate>

Date of the actual transaction, e.g. a card payment.

§status: TransactionStatus

Transaction status.

§account_servicer_reference: Option<String>

Unique reference assigned by the account servicer.

§payment_id: Option<String>

Unique identifier assigned by the sending party.

§transaction_id: Option<String>

Unique identifier assigned by the first instructing agent.

§end_to_end_id: Option<String>

Unique end-to-end identifier assigned by the initiating party.

§mandate_id: Option<String>

Mandate identifier.

§creditor_id: Option<String>

SEPA creditor identifier.

§amount: Amount

Transaction amount as billed to the account.

§reversal: bool

Indicator for reversals.

§original_amount: Option<Amount>

Original amount of the transaction.

§exchanges: Vec<ExchangeRate>

Exchange rates.

§fees: Vec<Fee>

Any fees related to the transaction.

§creditor: Option<Party>

Creditor data. In case of reversals this refers to the initial transaction.

§debtor: Option<Party>

Debtor data. In case of reversals this refers to the initial transaction.

§remittance_information: Vec<String>

Remittance (purpose).

§purpose_code: Option<String>

ISO 20022 ExternalPurpose1Code.

§bank_transaction_codes: Vec<BankTransactionCode>

Bank Transaction Codes.

§additional_information: Option<String>

Additional information attached to the transaction.

This might be a proprietary, localized, human-readable long text corresponding to some machine-readable bank transaction code that is not directly provided by the bank.

Trait Implementations§

Source§

impl Clone for Transaction

Source§

fn clone(&self) -> Transaction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Transaction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Transaction

Source§

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 PartialEq for Transaction

Source§

fn eq(&self, other: &Transaction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Transaction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for Transaction

Source§

impl StructuralPartialEq for Transaction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,