Struct Attributes

Source
pub struct Attributes {
Show 13 fields pub status: TransactionStatusEnum, pub raw_text: Option<String>, pub description: String, pub message: Option<String>, pub is_categorizable: bool, pub hold_info: Option<HoldInfoObject>, pub round_up: Option<RoundUpObject>, pub cashback: Option<CashBackObject>, pub amount: MoneyObject, pub foreign_amount: Option<MoneyObject>, pub card_purchase_method: Option<CardPurchaseMethodObject>, pub settled_at: Option<String>, pub created_at: String,
}

Fields§

§status: TransactionStatusEnum

The current processing status of this transaction, according to whether or not this transaction has settled or is still held. Possible values: HELD, SETTLED

§raw_text: Option<String>

The original, unprocessed text of the transaction. This is often not a perfect indicator of the actual merchant, but it is useful for reconciliation purposes in some cases.

§description: String

A short description for this transaction. Usually the merchant name for purchases.

§message: Option<String>

Attached message for this transaction, such as a payment message, or a transfer note.

§is_categorizable: bool

Boolean flag set to true on transactions that support the use of categories.

§hold_info: Option<HoldInfoObject>

If this transaction is currently in the HELD status, or was ever in the HELD status, the amount and foreignAmount of the transaction while HELD.

§round_up: Option<RoundUpObject>

Details of how this transaction was rounded-up. If no Round Up was applied this field will be null.

§cashback: Option<CashBackObject>

If all or part of this transaction was instantly reimbursed in the form of cashback, details of the reimbursement.

§amount: MoneyObject

The amount of this transaction in Australian dollars. For transactions that were once HELD but are now SETTLED, refer to the holdInfo field for the original amount the transaction was HELD at.

§foreign_amount: Option<MoneyObject>

The foreign currency amount of this transaction. This field will be null for domestic transactions. The amount was converted to the AUD amount reflected in the amount of this transaction. Refer to the holdInfo field for the original foreignAmount the transaction was HELD at.

§card_purchase_method: Option<CardPurchaseMethodObject>

Information about the card used for this transaction, if applicable.

§settled_at: Option<String>

The date-time at which this transaction settled. This field will be null for transactions that are currently in the HELD status.

§created_at: String

The date-time at which this transaction was first encountered.

Trait Implementations§

Source§

impl Debug for Attributes

Source§

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

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

impl<'de> Deserialize<'de> for Attributes

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

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<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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, 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<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,