pub struct LabeledPrice {
pub label: String,
pub amount: i64,
}Expand description
A portion of a price — label and amount in the smallest currency unit.
For Telegram Stars (XTR) the amount is in whole Stars.
For fiat currencies (e.g. USD) the amount is in cents.
Fields§
§label: StringPortion label shown to the user.
amount: i64Price in the smallest currency units.
Trait Implementations§
Source§impl Clone for LabeledPrice
impl Clone for LabeledPrice
Source§fn clone(&self) -> LabeledPrice
fn clone(&self) -> LabeledPrice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LabeledPrice
impl Debug for LabeledPrice
Source§impl<'de> Deserialize<'de> for LabeledPrice
impl<'de> Deserialize<'de> for LabeledPrice
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 LabeledPrice
impl RefUnwindSafe for LabeledPrice
impl Send for LabeledPrice
impl Sync for LabeledPrice
impl Unpin for LabeledPrice
impl UnsafeUnpin for LabeledPrice
impl UnwindSafe for LabeledPrice
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