pub struct GiftResaleParameters {
pub star_count: i64,
pub toncoin_cent_count: i64,
pub toncoin_only: bool,
}Expand description
Describes parameters of a unique gift available for resale
Fields§
§star_count: i64Resale price of the gift in Telegram Stars
toncoin_cent_count: i64Resale price of the gift in 1/100 of Toncoin
toncoin_only: boolTrue, if the gift can be bought only using Toncoins
Trait Implementations§
Source§impl Clone for GiftResaleParameters
impl Clone for GiftResaleParameters
Source§fn clone(&self) -> GiftResaleParameters
fn clone(&self) -> GiftResaleParameters
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 GiftResaleParameters
impl Debug for GiftResaleParameters
Source§impl Default for GiftResaleParameters
impl Default for GiftResaleParameters
Source§fn default() -> GiftResaleParameters
fn default() -> GiftResaleParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GiftResaleParameters
impl<'de> Deserialize<'de> for GiftResaleParameters
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 GiftResaleParameters
impl PartialEq for GiftResaleParameters
Source§impl Serialize for GiftResaleParameters
impl Serialize for GiftResaleParameters
impl StructuralPartialEq for GiftResaleParameters
Auto Trait Implementations§
impl Freeze for GiftResaleParameters
impl RefUnwindSafe for GiftResaleParameters
impl Send for GiftResaleParameters
impl Sync for GiftResaleParameters
impl Unpin for GiftResaleParameters
impl UnsafeUnpin for GiftResaleParameters
impl UnwindSafe for GiftResaleParameters
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