pub struct SuggestedPostPrice {
pub currency: String,
pub amount: i64,
}Expand description
The price of a suggested post.
Fields§
§currency: StringCurrency in which the post will be paid.
Currently "XTR" for Telegram Stars or "TON" for toncoins.
amount: i64Amount in the smallest units of the currency.
Stars must be between 5–100,000; nanotoncoins between 10,000,000–10,000,000,000,000.
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
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