pub struct ApiTransaction {
pub index: String,
pub status: ApiTxStatus,
pub created_at: String,
pub updated_at: String,
pub fee_rate: Decimal,
pub incoming: ApiTransferDetails,
pub outgoing: ApiTransferDetails,
pub application_metadata: Option<ApiApplicationMetadata>,
}Expand description
Schema for saving and updating data in the database for each transaction
Fields§
§index: StringThe unique transaction index generated by the application for the current transaction
status: ApiTxStatusThe state of the transaction
created_at: StringThe date and time of the creation of the transaction
updated_at: StringThe date and time of update of the transaction
fee_rate: Decimal§incoming: ApiTransferDetailsThe details of the transfer to ETO
outgoing: ApiTransferDetailsThe details of the transfer to receiver
application_metadata: Option<ApiApplicationMetadata>The application metadata of the tx
Trait Implementations§
Source§impl Clone for ApiTransaction
impl Clone for ApiTransaction
Source§fn clone(&self) -> ApiTransaction
fn clone(&self) -> ApiTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiTransaction
impl Debug for ApiTransaction
Source§impl<'de> Deserialize<'de> for ApiTransaction
impl<'de> Deserialize<'de> for ApiTransaction
Source§fn 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
Source§impl PartialEq for ApiTransaction
impl PartialEq for ApiTransaction
Source§fn eq(&self, other: &ApiTransaction) -> bool
fn eq(&self, other: &ApiTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApiTransaction
impl Serialize for ApiTransaction
impl StructuralPartialEq for ApiTransaction
Auto Trait Implementations§
impl Freeze for ApiTransaction
impl RefUnwindSafe for ApiTransaction
impl Send for ApiTransaction
impl Sync for ApiTransaction
impl Unpin for ApiTransaction
impl UnsafeUnpin for ApiTransaction
impl UnwindSafe for ApiTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more