pub struct ChatRevenueAmount {
pub cryptocurrency: String,
pub total_amount: i64,
pub balance_amount: i64,
pub available_amount: i64,
}Expand description
Contains information about revenue earned from sponsored messages in a chat
Fields§
§cryptocurrency: StringCryptocurrency in which revenue is calculated
total_amount: i64Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency
balance_amount: i64Amount of the cryptocurrency that isn’t withdrawn yet, in the smallest units of the cryptocurrency
available_amount: i64Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency
Trait Implementations§
Source§impl Clone for ChatRevenueAmount
impl Clone for ChatRevenueAmount
Source§fn clone(&self) -> ChatRevenueAmount
fn clone(&self) -> ChatRevenueAmount
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 ChatRevenueAmount
impl Debug for ChatRevenueAmount
Source§impl Default for ChatRevenueAmount
impl Default for ChatRevenueAmount
Source§fn default() -> ChatRevenueAmount
fn default() -> ChatRevenueAmount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatRevenueAmount
impl<'de> Deserialize<'de> for ChatRevenueAmount
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 ChatRevenueAmount
impl PartialEq for ChatRevenueAmount
Source§impl Serialize for ChatRevenueAmount
impl Serialize for ChatRevenueAmount
impl StructuralPartialEq for ChatRevenueAmount
Auto Trait Implementations§
impl Freeze for ChatRevenueAmount
impl RefUnwindSafe for ChatRevenueAmount
impl Send for ChatRevenueAmount
impl Sync for ChatRevenueAmount
impl Unpin for ChatRevenueAmount
impl UnwindSafe for ChatRevenueAmount
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