pub struct StarTransaction {
pub id: String,
pub star_amount: StarAmount,
pub is_refund: bool,
pub date: i32,
pub type: StarTransactionType,
}Expand description
Represents a transaction changing the amount of owned Telegram Stars
Fields§
§id: StringUnique identifier of the transaction
star_amount: StarAmountThe amount of added owned Telegram Stars; 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: StarTransactionTypeType of the 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
Source§impl PartialEq for StarTransaction
impl PartialEq for StarTransaction
Source§impl Serialize for StarTransaction
impl Serialize for StarTransaction
impl StructuralPartialEq for StarTransaction
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