pub struct SuggestedPostPrice {
pub amount: Integer,
pub currency: String,
}Expand description
Desribes price of a suggested post.
Fields§
§amount: IntegerThe amount of the currency that will be paid for the post in the smallest units of the currency i.e. Telegram Stars or nanotoncoins.
Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.
currency: StringCurrency in which the post will be paid.
Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins.
Implementations§
Trait Implementations§
Source§impl Clone for SuggestedPostPrice
impl Clone for SuggestedPostPrice
Source§fn clone(&self) -> SuggestedPostPrice
fn clone(&self) -> SuggestedPostPrice
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 SuggestedPostPrice
impl Debug for SuggestedPostPrice
Source§impl<'de> Deserialize<'de> for SuggestedPostPrice
impl<'de> Deserialize<'de> for SuggestedPostPrice
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 SuggestedPostPrice
impl PartialEq for SuggestedPostPrice
Source§fn eq(&self, other: &SuggestedPostPrice) -> bool
fn eq(&self, other: &SuggestedPostPrice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SuggestedPostPrice
impl PartialOrd for SuggestedPostPrice
Source§impl Serialize for SuggestedPostPrice
impl Serialize for SuggestedPostPrice
impl StructuralPartialEq for SuggestedPostPrice
Auto Trait Implementations§
impl Freeze for SuggestedPostPrice
impl RefUnwindSafe for SuggestedPostPrice
impl Send for SuggestedPostPrice
impl Sync for SuggestedPostPrice
impl Unpin for SuggestedPostPrice
impl UnsafeUnpin for SuggestedPostPrice
impl UnwindSafe for SuggestedPostPrice
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