pub struct TonTransaction {
pub id: String,
pub ton_amount: i64,
pub is_refund: bool,
pub date: i32,
pub type: TonTransactionType,
}Expand description
Represents a transaction changing the amount of owned Toncoins
Fields§
§id: StringUnique identifier of the transaction
ton_amount: i64The amount of added owned Toncoins; negative for outgoing transactions
is_refund: boolTrue, if the transaction is a refund of a previous transaction
date: i32Point in time (Unix timestamp) when the transaction was completed
type: TonTransactionTypeType of the transaction
Trait Implementations§
Source§impl Clone for TonTransaction
impl Clone for TonTransaction
Source§fn clone(&self) -> TonTransaction
fn clone(&self) -> TonTransaction
Returns a duplicate of the value. Read more
1.0.0 · 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 TonTransaction
impl Debug for TonTransaction
Source§impl<'de> Deserialize<'de> for TonTransaction
impl<'de> Deserialize<'de> for TonTransaction
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 TonTransaction
impl PartialEq for TonTransaction
Source§impl Serialize for TonTransaction
impl Serialize for TonTransaction
impl StructuralPartialEq for TonTransaction
Auto Trait Implementations§
impl Freeze for TonTransaction
impl RefUnwindSafe for TonTransaction
impl Send for TonTransaction
impl Sync for TonTransaction
impl Unpin for TonTransaction
impl UnsafeUnpin for TonTransaction
impl UnwindSafe for TonTransaction
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