pub struct ChatBoostSourceGiftCode {
pub source: String,
pub user: User,
pub extra: BTreeMap<String, Value>,
}Expand description
The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
Fields§
§source: StringSource of the boost, always ‘gift_code’
user: UserUser for which the gift code was created
extra: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for ChatBoostSourceGiftCode
impl Clone for ChatBoostSourceGiftCode
Source§impl Debug for ChatBoostSourceGiftCode
impl Debug for ChatBoostSourceGiftCode
Source§impl<'de> Deserialize<'de> for ChatBoostSourceGiftCode
impl<'de> Deserialize<'de> for ChatBoostSourceGiftCode
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 From<ChatBoostSourceGiftCode> for ChatBoostSourceUnion
impl From<ChatBoostSourceGiftCode> for ChatBoostSourceUnion
Source§fn from(value: ChatBoostSourceGiftCode) -> Self
fn from(value: ChatBoostSourceGiftCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChatBoostSourceGiftCode
impl PartialEq for ChatBoostSourceGiftCode
Source§impl Serialize for ChatBoostSourceGiftCode
impl Serialize for ChatBoostSourceGiftCode
impl StructuralPartialEq for ChatBoostSourceGiftCode
Auto Trait Implementations§
impl Freeze for ChatBoostSourceGiftCode
impl RefUnwindSafe for ChatBoostSourceGiftCode
impl Send for ChatBoostSourceGiftCode
impl Sync for ChatBoostSourceGiftCode
impl Unpin for ChatBoostSourceGiftCode
impl UnsafeUnpin for ChatBoostSourceGiftCode
impl UnwindSafe for ChatBoostSourceGiftCode
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