pub struct AcceptedGiftTypes {
pub unlimited_gifts: bool,
pub limited_gifts: bool,
pub unique_gifts: bool,
pub premium_subscription: bool,
pub gifts_from_channels: bool,
}Expand description
Types of gifts that can be gifted to a user or chat.
Fields§
§unlimited_gifts: booltrue if unlimited regular gifts are accepted.
limited_gifts: booltrue if limited regular gifts are accepted.
unique_gifts: booltrue if unique gifts or gifts upgradable to unique for free are accepted.
true if a Telegram Premium subscription is accepted.
gifts_from_channels: booltrue if transfers of unique gifts from channels are accepted.
Trait Implementations§
Source§impl Clone for AcceptedGiftTypes
impl Clone for AcceptedGiftTypes
Source§fn clone(&self) -> AcceptedGiftTypes
fn clone(&self) -> AcceptedGiftTypes
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 Debug for AcceptedGiftTypes
impl Debug for AcceptedGiftTypes
Source§impl<'de> Deserialize<'de> for AcceptedGiftTypes
impl<'de> Deserialize<'de> for AcceptedGiftTypes
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
Auto Trait Implementations§
impl Freeze for AcceptedGiftTypes
impl RefUnwindSafe for AcceptedGiftTypes
impl Send for AcceptedGiftTypes
impl Sync for AcceptedGiftTypes
impl Unpin for AcceptedGiftTypes
impl UnsafeUnpin for AcceptedGiftTypes
impl UnwindSafe for AcceptedGiftTypes
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