pub struct StarRevenueStatus {
pub total_amount: StarAmount,
pub current_amount: StarAmount,
pub available_amount: StarAmount,
pub withdrawal_enabled: bool,
pub next_withdrawal_in: i32,
}Expand description
Contains information about Telegram Stars earned by a user or a chat
Fields§
§total_amount: StarAmountTotal Telegram Star amount earned
current_amount: StarAmountThe Telegram Star amount that isn’t withdrawn yet
available_amount: StarAmountThe Telegram Star amount that is available for withdrawal
withdrawal_enabled: boolTrue, if Telegram Stars can be withdrawn now or later
next_withdrawal_in: i32Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now
Trait Implementations§
Source§impl Clone for StarRevenueStatus
impl Clone for StarRevenueStatus
Source§fn clone(&self) -> StarRevenueStatus
fn clone(&self) -> StarRevenueStatus
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 StarRevenueStatus
impl Debug for StarRevenueStatus
Source§impl Default for StarRevenueStatus
impl Default for StarRevenueStatus
Source§fn default() -> StarRevenueStatus
fn default() -> StarRevenueStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StarRevenueStatus
impl<'de> Deserialize<'de> for StarRevenueStatus
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 StarRevenueStatus
impl PartialEq for StarRevenueStatus
Source§impl Serialize for StarRevenueStatus
impl Serialize for StarRevenueStatus
impl StructuralPartialEq for StarRevenueStatus
Auto Trait Implementations§
impl Freeze for StarRevenueStatus
impl RefUnwindSafe for StarRevenueStatus
impl Send for StarRevenueStatus
impl Sync for StarRevenueStatus
impl Unpin for StarRevenueStatus
impl UnsafeUnpin for StarRevenueStatus
impl UnwindSafe for StarRevenueStatus
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