pub struct PremiumGiftPaymentOptions {
pub options: Vec<PremiumGiftPaymentOption>,
}Expand description
Contains a list of options for gifting Telegram Premium to a user
Fields§
§options: Vec<PremiumGiftPaymentOption>The list of options sorted by Telegram Premium subscription duration
Trait Implementations§
Source§impl Clone for PremiumGiftPaymentOptions
impl Clone for PremiumGiftPaymentOptions
Source§fn clone(&self) -> PremiumGiftPaymentOptions
fn clone(&self) -> PremiumGiftPaymentOptions
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 PremiumGiftPaymentOptions
impl Debug for PremiumGiftPaymentOptions
Source§impl Default for PremiumGiftPaymentOptions
impl Default for PremiumGiftPaymentOptions
Source§fn default() -> PremiumGiftPaymentOptions
fn default() -> PremiumGiftPaymentOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PremiumGiftPaymentOptions
impl<'de> Deserialize<'de> for PremiumGiftPaymentOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PremiumGiftPaymentOptions
impl PartialEq for PremiumGiftPaymentOptions
Source§fn eq(&self, other: &PremiumGiftPaymentOptions) -> bool
fn eq(&self, other: &PremiumGiftPaymentOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PremiumGiftPaymentOptions
Auto Trait Implementations§
impl Freeze for PremiumGiftPaymentOptions
impl RefUnwindSafe for PremiumGiftPaymentOptions
impl Send for PremiumGiftPaymentOptions
impl Sync for PremiumGiftPaymentOptions
impl Unpin for PremiumGiftPaymentOptions
impl UnsafeUnpin for PremiumGiftPaymentOptions
impl UnwindSafe for PremiumGiftPaymentOptions
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