pub enum InputStorePaymentPurpose {
InputStorePaymentPremiumSubscription(InputStorePaymentPremiumSubscription),
InputStorePaymentGiftPremium(InputStorePaymentGiftPremium),
InputStorePaymentPremiumGiftCode(InputStorePaymentPremiumGiftCode),
InputStorePaymentPremiumGiveaway(InputStorePaymentPremiumGiveaway),
InputStorePaymentStarsTopup(InputStorePaymentStarsTopup),
InputStorePaymentStarsGift(InputStorePaymentStarsGift),
InputStorePaymentStarsGiveaway(InputStorePaymentStarsGiveaway),
InputStorePaymentAuthCode(InputStorePaymentAuthCode),
}Expand description
Variants§
InputStorePaymentPremiumSubscription(InputStorePaymentPremiumSubscription)
InputStorePaymentGiftPremium(InputStorePaymentGiftPremium)
InputStorePaymentPremiumGiftCode(InputStorePaymentPremiumGiftCode)
InputStorePaymentPremiumGiveaway(InputStorePaymentPremiumGiveaway)
InputStorePaymentStarsTopup(InputStorePaymentStarsTopup)
InputStorePaymentStarsGift(InputStorePaymentStarsGift)
InputStorePaymentStarsGiveaway(InputStorePaymentStarsGiveaway)
InputStorePaymentAuthCode(InputStorePaymentAuthCode)
Implementations§
Source§impl InputStorePaymentPurpose
impl InputStorePaymentPurpose
Sourcepub fn boost_peer(&self) -> Option<&InputPeer>
pub fn boost_peer(&self) -> Option<&InputPeer>
Returns boost_peer if present in this variant.
Sourcepub fn only_new_subscribers(&self) -> Option<&bool>
pub fn only_new_subscribers(&self) -> Option<&bool>
Returns only_new_subscribers if present in this variant.
Sourcepub fn winners_are_visible(&self) -> Option<&bool>
pub fn winners_are_visible(&self) -> Option<&bool>
Returns winners_are_visible if present in this variant.
Sourcepub fn additional_peers(&self) -> Option<&Vec<InputPeer>>
pub fn additional_peers(&self) -> Option<&Vec<InputPeer>>
Returns additional_peers if present in this variant.
Sourcepub fn countries_iso2(&self) -> Option<&Vec<String>>
pub fn countries_iso2(&self) -> Option<&Vec<String>>
Returns countries_iso2 if present in this variant.
Sourcepub fn prize_description(&self) -> Option<&String>
pub fn prize_description(&self) -> Option<&String>
Returns prize_description if present in this variant.
Sourcepub fn until_date(&self) -> Option<&i32>
pub fn until_date(&self) -> Option<&i32>
Returns until_date if present in this variant.
Trait Implementations§
Source§impl Clone for InputStorePaymentPurpose
impl Clone for InputStorePaymentPurpose
Source§fn clone(&self) -> InputStorePaymentPurpose
fn clone(&self) -> InputStorePaymentPurpose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputStorePaymentPurpose
impl Debug for InputStorePaymentPurpose
Source§impl Deserializable for InputStorePaymentPurpose
impl Deserializable for InputStorePaymentPurpose
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<InputStorePaymentAuthCode> for InputStorePaymentPurpose
impl From<InputStorePaymentAuthCode> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentAuthCode) -> Self
fn from(x: InputStorePaymentAuthCode) -> Self
Converts to this type from the input type.
Source§impl From<InputStorePaymentGiftPremium> for InputStorePaymentPurpose
impl From<InputStorePaymentGiftPremium> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentGiftPremium) -> Self
fn from(x: InputStorePaymentGiftPremium) -> Self
Converts to this type from the input type.
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 From<InputStorePaymentPremiumGiveaway> for InputStorePaymentPurpose
impl From<InputStorePaymentPremiumGiveaway> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentPremiumGiveaway) -> Self
fn from(x: InputStorePaymentPremiumGiveaway) -> Self
Converts to this type from the input type.
Source§impl From<InputStorePaymentPremiumSubscription> for InputStorePaymentPurpose
impl From<InputStorePaymentPremiumSubscription> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentPremiumSubscription) -> Self
fn from(x: InputStorePaymentPremiumSubscription) -> Self
Converts to this type from the input type.
Source§impl From<InputStorePaymentStarsGift> for InputStorePaymentPurpose
impl From<InputStorePaymentStarsGift> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentStarsGift) -> Self
fn from(x: InputStorePaymentStarsGift) -> Self
Converts to this type from the input type.
Source§impl From<InputStorePaymentStarsGiveaway> for InputStorePaymentPurpose
impl From<InputStorePaymentStarsGiveaway> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentStarsGiveaway) -> Self
fn from(x: InputStorePaymentStarsGiveaway) -> Self
Converts to this type from the input type.
Source§impl From<InputStorePaymentStarsTopup> for InputStorePaymentPurpose
impl From<InputStorePaymentStarsTopup> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentStarsTopup) -> Self
fn from(x: InputStorePaymentStarsTopup) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputStorePaymentPurpose
impl PartialEq for InputStorePaymentPurpose
impl StructuralPartialEq for InputStorePaymentPurpose
Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentPremiumSubscription
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentPremiumSubscription
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentGiftPremium
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentGiftPremium
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
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.
Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentPremiumGiveaway
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentPremiumGiveaway
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsTopup
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsTopup
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsGift
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsGift
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsGiveaway
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsGiveaway
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentAuthCode
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentAuthCode
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InputStorePaymentPurpose
impl RefUnwindSafe for InputStorePaymentPurpose
impl Send for InputStorePaymentPurpose
impl Sync for InputStorePaymentPurpose
impl Unpin for InputStorePaymentPurpose
impl UnsafeUnpin for InputStorePaymentPurpose
impl UnwindSafe for InputStorePaymentPurpose
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