pub struct TransferEvent {
    pub event_id: i64,
    pub timestamp: String,
    pub event_type: TransferEventType,
    pub account_id: String,
    pub transfer_id: TransferId,
    pub origination_account_id: Option<String>,
    pub transfer_type: TransferType,
    pub transfer_amount: TransferAmount,
    pub failure_reason: Option<TransferFailure>,
    pub sweep_id: Option<TransferSweepId>,
    pub sweep_amount: Option<TransferSweepAmount>,
}

Fields

event_id: i64

Plaid’s unique identifier for this event. IDs are sequential unsigned 64-bit integers.

timestamp: String

The datetime when this event occurred. This will be of the form 2006-01-02T15:04:05Z.

event_type: TransferEventType

The type of event that this transfer represents.

pending: A new transfer was created; it is in the pending state.

cancelled: The transfer was cancelled by the client.

failed: The transfer failed, no funds were moved.

posted: The transfer has been successfully submitted to the payment network.

returned: A posted transfer was returned.

swept: The transfer was swept to / from the sweep account.

return_swept: Due to the transfer being returned, funds were pulled from or pushed back to the sweep account.

account_id: String

The account ID associated with the transfer.

transfer_id: TransferId

Plaid’s unique identifier for a transfer.

origination_account_id: Option<String>

The ID of the origination account that this balance belongs to.

transfer_type: TransferType

The type of transfer. This will be either debit or credit. A debit indicates a transfer of money into the origination account; a credit indicates a transfer of money out of the origination account.

transfer_amount: TransferAmount

The amount of the transfer (decimal string with two digits of precision e.g. “10.00”).

failure_reason: Option<TransferFailure>

The failure reason if the event type for a transfer is "failed" or "returned". Null value otherwise.

sweep_id: Option<TransferSweepId>

Plaid’s unique identifier for a sweep.

sweep_amount: Option<TransferSweepAmount>

A signed amount of how much was swept or return_swept (decimal string with two digits of precision e.g. “-5.50”).

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more