pub struct InputInvoicePremiumGiftStars {
pub user_id: InputUser,
pub months: i32,
pub message: Option<TextWithEntities>,
}Expand description
Generated from:
inputInvoicePremiumGiftStars#dabab2ef flags:# user_id:InputUser months:int message:flags.0?TextWithEntities = InputInvoiceFields§
§user_id: InputUser§months: i32§message: Option<TextWithEntities>Trait Implementations§
Source§impl Clone for InputInvoicePremiumGiftStars
impl Clone for InputInvoicePremiumGiftStars
Source§fn clone(&self) -> InputInvoicePremiumGiftStars
fn clone(&self) -> InputInvoicePremiumGiftStars
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 InputInvoicePremiumGiftStars
impl Debug for InputInvoicePremiumGiftStars
Source§impl Deserializable for InputInvoicePremiumGiftStars
impl Deserializable for InputInvoicePremiumGiftStars
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<InputInvoicePremiumGiftStars> for InputInvoice
impl From<InputInvoicePremiumGiftStars> for InputInvoice
Source§fn from(x: InputInvoicePremiumGiftStars) -> Self
fn from(x: InputInvoicePremiumGiftStars) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputInvoicePremiumGiftStars
impl Identifiable for InputInvoicePremiumGiftStars
Source§const CONSTRUCTOR_ID: u32 = 0xdabab2ef
const CONSTRUCTOR_ID: u32 = 0xdabab2ef
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputInvoicePremiumGiftStars
impl PartialEq for InputInvoicePremiumGiftStars
Source§fn eq(&self, other: &InputInvoicePremiumGiftStars) -> bool
fn eq(&self, other: &InputInvoicePremiumGiftStars) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<InputInvoice> for InputInvoicePremiumGiftStars
impl TryFrom<InputInvoice> for InputInvoicePremiumGiftStars
Source§type Error = InputInvoice
type Error = InputInvoice
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputInvoicePremiumGiftStars
Auto Trait Implementations§
impl Freeze for InputInvoicePremiumGiftStars
impl RefUnwindSafe for InputInvoicePremiumGiftStars
impl Send for InputInvoicePremiumGiftStars
impl Sync for InputInvoicePremiumGiftStars
impl Unpin for InputInvoicePremiumGiftStars
impl UnsafeUnpin for InputInvoicePremiumGiftStars
impl UnwindSafe for InputInvoicePremiumGiftStars
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