pub struct StarsGiftOption {
pub extended: bool,
pub stars: i64,
pub store_product: Option<String>,
pub currency: String,
pub amount: i64,
}Expand description
Generated from:
starsGiftOption#5e0589f1 flags:# extended:flags.1?true stars:long store_product:flags.0?string currency:string amount:long = StarsGiftOptionFields§
§extended: bool§stars: i64§store_product: Option<String>§currency: String§amount: i64Trait Implementations§
Source§impl Clone for StarsGiftOption
impl Clone for StarsGiftOption
Source§fn clone(&self) -> StarsGiftOption
fn clone(&self) -> StarsGiftOption
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 StarsGiftOption
impl Debug for StarsGiftOption
Source§impl Deserializable for StarsGiftOption
impl Deserializable for StarsGiftOption
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<StarsGiftOption> for StarsGiftOption
impl From<StarsGiftOption> for StarsGiftOption
Source§fn from(x: StarsGiftOption) -> Self
fn from(x: StarsGiftOption) -> Self
Converts to this type from the input type.
Source§impl Identifiable for StarsGiftOption
impl Identifiable for StarsGiftOption
Source§const CONSTRUCTOR_ID: u32 = 0x5e0589f1
const CONSTRUCTOR_ID: u32 = 0x5e0589f1
The constructor ID as specified in the TL schema.
Source§impl PartialEq for StarsGiftOption
impl PartialEq for StarsGiftOption
Source§impl Serializable for StarsGiftOption
impl Serializable for StarsGiftOption
Source§impl TryFrom<StarsGiftOption> for StarsGiftOption
impl TryFrom<StarsGiftOption> for StarsGiftOption
Source§type Error = StarsGiftOption
type Error = StarsGiftOption
The type returned in the event of a conversion error.
impl StructuralPartialEq for StarsGiftOption
Auto Trait Implementations§
impl Freeze for StarsGiftOption
impl RefUnwindSafe for StarsGiftOption
impl Send for StarsGiftOption
impl Sync for StarsGiftOption
impl Unpin for StarsGiftOption
impl UnsafeUnpin for StarsGiftOption
impl UnwindSafe for StarsGiftOption
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