pub struct StarAmount {
pub amount: u64,
pub nanostar_amount: Option<u32>,
}Expand description
An amount of Telegram Stars.
amount is the integer Star count. nanostar_amount is a fractional
component in nanostar units (1 Star = 1,000,000,000 nanostars), present
only in certain transaction contexts.
Fields§
§amount: u64Integer Star amount.
nanostar_amount: Option<u32>Fractional amount in nanostar units (1 Star = 1,000,000,000 nanostars).
Trait Implementations§
Source§impl Clone for StarAmount
impl Clone for StarAmount
Source§fn clone(&self) -> StarAmount
fn clone(&self) -> StarAmount
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 StarAmount
impl Debug for StarAmount
Source§impl<'de> Deserialize<'de> for StarAmount
impl<'de> Deserialize<'de> for StarAmount
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 StarAmount
impl RefUnwindSafe for StarAmount
impl Send for StarAmount
impl Sync for StarAmount
impl Unpin for StarAmount
impl UnsafeUnpin for StarAmount
impl UnwindSafe for StarAmount
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