pub struct AcceptedGiftTypes {
pub unlimited_gifts: bool,
pub limited_gifts: bool,
pub upgraded_gifts: bool,
pub gifts_from_channels: bool,
pub premium_subscription: bool,
}Expand description
Describes gift types that are accepted by a user
Fields§
§unlimited_gifts: boolTrue, if unlimited regular gifts are accepted
limited_gifts: boolTrue, if limited regular gifts are accepted
upgraded_gifts: boolTrue, if upgraded gifts and regular gifts that can be upgraded for free are accepted
gifts_from_channels: boolTrue, if gifts from channels are accepted subject to other restrictions
True, if Telegram Premium subscription is 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 Default for AcceptedGiftTypes
impl Default for AcceptedGiftTypes
Source§fn default() -> AcceptedGiftTypes
fn default() -> AcceptedGiftTypes
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for AcceptedGiftTypes
impl PartialEq for AcceptedGiftTypes
Source§impl Serialize for AcceptedGiftTypes
impl Serialize for AcceptedGiftTypes
impl StructuralPartialEq for AcceptedGiftTypes
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