pub struct TransactionDto {Show 15 fields
pub id: Uuid,
pub tenant_id: String,
pub article_id: String,
pub creator_id: String,
pub reader_wallet: String,
pub amount_cents: u64,
pub platform_fee_cents: u64,
pub creator_amount_cents: u64,
pub blockchain: BlockchainDto,
pub tx_signature: String,
pub status: TransactionStatusDto,
pub explorer_url: String,
pub created_at: DateTime<Utc>,
pub confirmed_at: Option<DateTime<Utc>>,
pub refunded_at: Option<DateTime<Utc>>,
}Expand description
DTO for a transaction in responses
Fields§
§id: Uuid§tenant_id: String§article_id: String§creator_id: String§reader_wallet: String§amount_cents: u64§platform_fee_cents: u64§creator_amount_cents: u64§blockchain: BlockchainDto§tx_signature: String§status: TransactionStatusDto§explorer_url: String§created_at: DateTime<Utc>§confirmed_at: Option<DateTime<Utc>>§refunded_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for TransactionDto
impl Clone for TransactionDto
Source§fn clone(&self) -> TransactionDto
fn clone(&self) -> TransactionDto
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 TransactionDto
impl Debug for TransactionDto
Source§impl From<&Transaction> for TransactionDto
impl From<&Transaction> for TransactionDto
Source§fn from(tx: &Transaction) -> Self
fn from(tx: &Transaction) -> Self
Converts to this type from the input type.
Source§impl From<Transaction> for TransactionDto
impl From<Transaction> for TransactionDto
Source§fn from(tx: Transaction) -> Self
fn from(tx: Transaction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionDto
impl RefUnwindSafe for TransactionDto
impl Send for TransactionDto
impl Sync for TransactionDto
impl Unpin for TransactionDto
impl UnsafeUnpin for TransactionDto
impl UnwindSafe for TransactionDto
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