pub struct StarTransaction {
pub id: String,
pub amount: u64,
pub nanostar_amount: Option<u32>,
pub date: i64,
pub source: Option<TransactionPartner>,
pub receiver: Option<TransactionPartner>,
}Expand description
A single Telegram Star transaction.
Fields§
§id: StringUnique transaction identifier.
amount: u64Number of Telegram Stars transferred.
nanostar_amount: Option<u32>Number of 1/1000000000 shares of Telegram Stars transferred.
date: i64Date the transaction was created, as a Unix timestamp.
source: Option<TransactionPartner>Source of an incoming transaction.
receiver: Option<TransactionPartner>Receiver of an outgoing transaction.
Trait Implementations§
Source§impl Clone for StarTransaction
impl Clone for StarTransaction
Source§fn clone(&self) -> StarTransaction
fn clone(&self) -> StarTransaction
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 StarTransaction
impl Debug for StarTransaction
Source§impl<'de> Deserialize<'de> for StarTransaction
impl<'de> Deserialize<'de> for StarTransaction
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
Auto Trait Implementations§
impl Freeze for StarTransaction
impl RefUnwindSafe for StarTransaction
impl Send for StarTransaction
impl Sync for StarTransaction
impl Unpin for StarTransaction
impl UnsafeUnpin for StarTransaction
impl UnwindSafe for StarTransaction
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