pub struct InternalLinkTypePremiumGiftCode {
pub code: String,
}
Expand description
The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. If the code is valid and the user wants to apply it, then call applyPremiumGiftCode
Fields§
§code: String
The Telegram Premium gift code
Trait Implementations§
Source§impl Clone for InternalLinkTypePremiumGiftCode
impl Clone for InternalLinkTypePremiumGiftCode
Source§fn clone(&self) -> InternalLinkTypePremiumGiftCode
fn clone(&self) -> InternalLinkTypePremiumGiftCode
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 Default for InternalLinkTypePremiumGiftCode
impl Default for InternalLinkTypePremiumGiftCode
Source§fn default() -> InternalLinkTypePremiumGiftCode
fn default() -> InternalLinkTypePremiumGiftCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InternalLinkTypePremiumGiftCode
impl<'de> Deserialize<'de> for InternalLinkTypePremiumGiftCode
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 InternalLinkTypePremiumGiftCode
impl PartialEq for InternalLinkTypePremiumGiftCode
Source§fn eq(&self, other: &InternalLinkTypePremiumGiftCode) -> bool
fn eq(&self, other: &InternalLinkTypePremiumGiftCode) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InternalLinkTypePremiumGiftCode
Auto Trait Implementations§
impl Freeze for InternalLinkTypePremiumGiftCode
impl RefUnwindSafe for InternalLinkTypePremiumGiftCode
impl Send for InternalLinkTypePremiumGiftCode
impl Sync for InternalLinkTypePremiumGiftCode
impl Unpin for InternalLinkTypePremiumGiftCode
impl UnwindSafe for InternalLinkTypePremiumGiftCode
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