Skip to main content

StarsTransaction

Struct StarsTransaction 

Source
pub struct StarsTransaction {
Show 37 fields pub refund: bool, pub pending: bool, pub failed: bool, pub gift: bool, pub reaction: bool, pub stargift_upgrade: bool, pub business_transfer: bool, pub stargift_resale: bool, pub posts_search: bool, pub stargift_prepaid_upgrade: bool, pub stargift_drop_original_details: bool, pub phonegroup_message: bool, pub stargift_auction_bid: bool, pub offer: bool, pub id: String, pub amount: StarsAmount, pub date: i32, pub peer: StarsTransactionPeer, pub title: Option<String>, pub description: Option<String>, pub photo: Option<WebDocument>, pub transaction_date: Option<i32>, pub transaction_url: Option<String>, pub bot_payload: Option<Vec<u8>>, pub msg_id: Option<i32>, pub extended_media: Option<Vec<MessageMedia>>, pub subscription_period: Option<i32>, pub giveaway_post_id: Option<i32>, pub stargift: Option<StarGift>, pub floodskip_number: Option<i32>, pub starref_commission_permille: Option<i32>, pub starref_peer: Option<Peer>, pub starref_amount: Option<StarsAmount>, pub paid_messages: Option<i32>, pub premium_gift_months: Option<i32>, pub ads_proceeds_from_date: Option<i32>, pub ads_proceeds_to_date: Option<i32>,
}
Expand description

starsTransaction

Generated from:

starsTransaction#13659eb0 flags:# refund:flags.3?true pending:flags.4?true failed:flags.6?true gift:flags.10?true reaction:flags.11?true stargift_upgrade:flags.18?true business_transfer:flags.21?true stargift_resale:flags.22?true posts_search:flags.24?true stargift_prepaid_upgrade:flags.25?true stargift_drop_original_details:flags.26?true phonegroup_message:flags.27?true stargift_auction_bid:flags.28?true offer:flags.29?true id:string amount:StarsAmount date:int peer:StarsTransactionPeer title:flags.0?string description:flags.1?string photo:flags.2?WebDocument transaction_date:flags.5?int transaction_url:flags.5?string bot_payload:flags.7?bytes msg_id:flags.8?int extended_media:flags.9?Vector<MessageMedia> subscription_period:flags.12?int giveaway_post_id:flags.13?int stargift:flags.14?StarGift floodskip_number:flags.15?int starref_commission_permille:flags.16?int starref_peer:flags.17?Peer starref_amount:flags.17?StarsAmount paid_messages:flags.19?int premium_gift_months:flags.20?int ads_proceeds_from_date:flags.23?int ads_proceeds_to_date:flags.23?int = StarsTransaction

Fields§

§refund: bool§pending: bool§failed: bool§gift: bool§reaction: bool§stargift_upgrade: bool§business_transfer: bool§stargift_resale: bool§posts_search: bool§stargift_prepaid_upgrade: bool§stargift_drop_original_details: bool§phonegroup_message: bool§stargift_auction_bid: bool§offer: bool§id: String§amount: StarsAmount§date: i32§peer: StarsTransactionPeer§title: Option<String>§description: Option<String>§photo: Option<WebDocument>§transaction_date: Option<i32>§transaction_url: Option<String>§bot_payload: Option<Vec<u8>>§msg_id: Option<i32>§extended_media: Option<Vec<MessageMedia>>§subscription_period: Option<i32>§giveaway_post_id: Option<i32>§stargift: Option<StarGift>§floodskip_number: Option<i32>§starref_commission_permille: Option<i32>§starref_peer: Option<Peer>§starref_amount: Option<StarsAmount>§paid_messages: Option<i32>§premium_gift_months: Option<i32>§ads_proceeds_from_date: Option<i32>§ads_proceeds_to_date: Option<i32>

Trait Implementations§

Source§

impl Clone for StarsTransaction

Source§

fn clone(&self) -> StarsTransaction

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StarsTransaction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserializable for StarsTransaction

Source§

fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>

Read Self from buf, advancing its position.
Source§

fn from_bytes(bytes: &[u8]) -> Result<Self>

Convenience: deserialize from a byte slice.
Source§

impl From<StarsTransaction> for StarsTransaction

Source§

fn from(x: StarsTransaction) -> Self

Converts to this type from the input type.
Source§

impl Identifiable for StarsTransaction

Source§

const CONSTRUCTOR_ID: u32 = 0x13659eb0

The constructor ID as specified in the TL schema.
Source§

impl PartialEq for StarsTransaction

Source§

fn eq(&self, other: &StarsTransaction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serializable for StarsTransaction

Source§

fn serialize(&self, buf: &mut impl Extend<u8>)

Appends the serialized form of self to buf.
Source§

fn to_bytes(&self) -> Vec<u8>

Convenience: allocate a fresh Vec<u8> and serialize into it.
Source§

impl TryFrom<StarsTransaction> for StarsTransaction

Source§

type Error = StarsTransaction

The type returned in the event of a conversion error.
Source§

fn try_from(v: StarsTransaction) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for StarsTransaction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.