pub struct TransactionStatusData {
Show 15 fields pub id: Option<u32>, pub status: Option<String>, pub reference: Option<String>, pub amount: Option<u32>, pub message: Option<String>, pub gateway_response: Option<String>, pub paid_at: Option<String>, pub created_at: Option<String>, pub channel: Option<String>, pub currency: Option<String>, pub ip_address: Option<String>, pub metadata: Option<String>, pub fees: Option<i32>, pub customer: Option<Customer>, pub authorization: Option<Authorization>,
}
Expand description

This struct represents the data of the transaction status response.

Fields§

§id: Option<u32>

Id of the Transaction

§status: Option<String>

Status of the Transaction. It can be success, abandoned or failed

§reference: Option<String>

Reference of the Transaction

§amount: Option<u32>

Amount of the transaction in the lowest denomination of the currency e.g. Kobo for NGN and cent for USD.

§message: Option<String>

Message from the transaction.

§gateway_response: Option<String>

Response from the payment gateway.

§paid_at: Option<String>

Time the Transaction was completed.

§created_at: Option<String>

Time the Transaction was created.

§channel: Option<String>

Transaction channel. It can be card or bank.

§currency: Option<String>

Currency code of the Transaction e.g. NGN for Nigerian Naira and USD for US Dollar.

§ip_address: Option<String>

IP address of the computers the Transaction has passed through.

§metadata: Option<String>

Meta data associated with the Transaction.

§fees: Option<i32>

Transaction fees to override the default fees specified in the integration.

§customer: Option<Customer>

Transaction customer data.

§authorization: Option<Authorization>

Transaction authorization data.

Trait Implementations§

source§

impl Clone for TransactionStatusData

source§

fn clone(&self) -> TransactionStatusData

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for TransactionStatusData

source§

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

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

impl<'de> Deserialize<'de> for TransactionStatusData

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 Serialize for TransactionStatusData

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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 Twhere T: for<'de> Deserialize<'de>,