pub struct InputStorePaymentPremiumGiftCode {
pub users: Vec<InputUser>,
pub boost_peer: Option<InputPeer>,
pub currency: String,
pub amount: i64,
pub message: Option<TextWithEntities>,
}Expand description
inputStorePaymentPremiumGiftCode
Generated from:
inputStorePaymentPremiumGiftCode#fb790393 flags:# users:Vector<InputUser> boost_peer:flags.0?InputPeer currency:string amount:long message:flags.1?TextWithEntities = InputStorePaymentPurposeFields§
§users: Vec<InputUser>§boost_peer: Option<InputPeer>§currency: String§amount: i64§message: Option<TextWithEntities>Trait Implementations§
Source§impl Clone for InputStorePaymentPremiumGiftCode
impl Clone for InputStorePaymentPremiumGiftCode
Source§fn clone(&self) -> InputStorePaymentPremiumGiftCode
fn clone(&self) -> InputStorePaymentPremiumGiftCode
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 Deserializable for InputStorePaymentPremiumGiftCode
impl Deserializable for InputStorePaymentPremiumGiftCode
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<InputStorePaymentPremiumGiftCode> for InputStorePaymentPurpose
impl From<InputStorePaymentPremiumGiftCode> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentPremiumGiftCode) -> Self
fn from(x: InputStorePaymentPremiumGiftCode) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputStorePaymentPremiumGiftCode
impl Identifiable for InputStorePaymentPremiumGiftCode
Source§const CONSTRUCTOR_ID: u32 = 0xfb790393
const CONSTRUCTOR_ID: u32 = 0xfb790393
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputStorePaymentPremiumGiftCode
impl PartialEq for InputStorePaymentPremiumGiftCode
Source§fn eq(&self, other: &InputStorePaymentPremiumGiftCode) -> bool
fn eq(&self, other: &InputStorePaymentPremiumGiftCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentPremiumGiftCode
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentPremiumGiftCode
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputStorePaymentPremiumGiftCode
Auto Trait Implementations§
impl Freeze for InputStorePaymentPremiumGiftCode
impl RefUnwindSafe for InputStorePaymentPremiumGiftCode
impl Send for InputStorePaymentPremiumGiftCode
impl Sync for InputStorePaymentPremiumGiftCode
impl Unpin for InputStorePaymentPremiumGiftCode
impl UnsafeUnpin for InputStorePaymentPremiumGiftCode
impl UnwindSafe for InputStorePaymentPremiumGiftCode
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