Struct plaid_openapi::model::TransferEvent
source · [−]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: i64Plaid’s unique identifier for this event. IDs are sequential unsigned 64-bit integers.
timestamp: StringThe datetime when this event occurred. This will be of the form 2006-01-02T15:04:05Z.
event_type: TransferEventTypeThe 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: StringThe account ID associated with the transfer.
transfer_id: TransferIdPlaid’s unique identifier for a transfer.
origination_account_id: Option<String>The ID of the origination account that this balance belongs to.
transfer_type: TransferTypeThe 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: TransferAmountThe 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
sourceimpl Debug for TransferEvent
impl Debug for TransferEvent
sourceimpl<'de> Deserialize<'de> for TransferEvent
impl<'de> Deserialize<'de> for TransferEvent
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for TransferEvent
impl Serialize for TransferEvent
Auto Trait Implementations
impl RefUnwindSafe for TransferEvent
impl Send for TransferEvent
impl Sync for TransferEvent
impl Unpin for TransferEvent
impl UnwindSafe for TransferEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more