pub struct DisallowedGiftsSettings {
pub disallow_unlimited_stargifts: bool,
pub disallow_limited_stargifts: bool,
pub disallow_unique_stargifts: bool,
pub disallow_premium_gifts: bool,
pub disallow_stargifts_from_channels: bool,
}Expand description
Generated from:
disallowedGiftsSettings#71f276c4 flags:# disallow_unlimited_stargifts:flags.0?true disallow_limited_stargifts:flags.1?true disallow_unique_stargifts:flags.2?true disallow_premium_gifts:flags.3?true disallow_stargifts_from_channels:flags.4?true = DisallowedGiftsSettingsFields§
§disallow_unlimited_stargifts: bool§disallow_limited_stargifts: bool§disallow_unique_stargifts: bool§disallow_stargifts_from_channels: boolTrait Implementations§
Source§impl Clone for DisallowedGiftsSettings
impl Clone for DisallowedGiftsSettings
Source§fn clone(&self) -> DisallowedGiftsSettings
fn clone(&self) -> DisallowedGiftsSettings
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 DisallowedGiftsSettings
impl Debug for DisallowedGiftsSettings
Source§impl Deserializable for DisallowedGiftsSettings
impl Deserializable for DisallowedGiftsSettings
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<DisallowedGiftsSettings> for DisallowedGiftsSettings
impl From<DisallowedGiftsSettings> for DisallowedGiftsSettings
Source§fn from(x: DisallowedGiftsSettings) -> Self
fn from(x: DisallowedGiftsSettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for DisallowedGiftsSettings
impl Identifiable for DisallowedGiftsSettings
Source§const CONSTRUCTOR_ID: u32 = 0x71f276c4
const CONSTRUCTOR_ID: u32 = 0x71f276c4
The constructor ID as specified in the TL schema.
Source§impl PartialEq for DisallowedGiftsSettings
impl PartialEq for DisallowedGiftsSettings
Source§impl TryFrom<DisallowedGiftsSettings> for DisallowedGiftsSettings
impl TryFrom<DisallowedGiftsSettings> for DisallowedGiftsSettings
Source§type Error = DisallowedGiftsSettings
type Error = DisallowedGiftsSettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for DisallowedGiftsSettings
Auto Trait Implementations§
impl Freeze for DisallowedGiftsSettings
impl RefUnwindSafe for DisallowedGiftsSettings
impl Send for DisallowedGiftsSettings
impl Sync for DisallowedGiftsSettings
impl Unpin for DisallowedGiftsSettings
impl UnsafeUnpin for DisallowedGiftsSettings
impl UnwindSafe for DisallowedGiftsSettings
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