pub struct InputInvoicePremiumGiftCode {
pub purpose: InputStorePaymentPurpose,
pub option: PremiumGiftCodeOption,
}Expand description
Generated from:
inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoiceFields§
§purpose: InputStorePaymentPurpose§option: PremiumGiftCodeOptionTrait Implementations§
Source§impl Clone for InputInvoicePremiumGiftCode
impl Clone for InputInvoicePremiumGiftCode
Source§fn clone(&self) -> InputInvoicePremiumGiftCode
fn clone(&self) -> InputInvoicePremiumGiftCode
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 InputInvoicePremiumGiftCode
impl Debug for InputInvoicePremiumGiftCode
Source§impl Deserializable for InputInvoicePremiumGiftCode
impl Deserializable for InputInvoicePremiumGiftCode
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<InputInvoicePremiumGiftCode> for InputInvoice
impl From<InputInvoicePremiumGiftCode> for InputInvoice
Source§fn from(x: InputInvoicePremiumGiftCode) -> Self
fn from(x: InputInvoicePremiumGiftCode) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputInvoicePremiumGiftCode
impl Identifiable for InputInvoicePremiumGiftCode
Source§const CONSTRUCTOR_ID: u32 = 0x98986c0d
const CONSTRUCTOR_ID: u32 = 0x98986c0d
The constructor ID as specified in the TL schema.
Source§impl TryFrom<InputInvoice> for InputInvoicePremiumGiftCode
impl TryFrom<InputInvoice> for InputInvoicePremiumGiftCode
Source§type Error = InputInvoice
type Error = InputInvoice
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputInvoicePremiumGiftCode
Auto Trait Implementations§
impl Freeze for InputInvoicePremiumGiftCode
impl RefUnwindSafe for InputInvoicePremiumGiftCode
impl Send for InputInvoicePremiumGiftCode
impl Sync for InputInvoicePremiumGiftCode
impl Unpin for InputInvoicePremiumGiftCode
impl UnsafeUnpin for InputInvoicePremiumGiftCode
impl UnwindSafe for InputInvoicePremiumGiftCode
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