pub struct GlobalPrivacySettings {
pub archive_and_mute_new_noncontact_peers: bool,
pub keep_archived_unmuted: bool,
pub keep_archived_folders: bool,
pub hide_read_marks: bool,
pub new_noncontact_peers_require_premium: bool,
pub display_gifts_button: bool,
pub noncontact_peers_paid_stars: Option<i64>,
pub disallowed_gifts: Option<DisallowedGiftsSettings>,
}Expand description
Generated from:
globalPrivacySettings#fe41b34f flags:# archive_and_mute_new_noncontact_peers:flags.0?true keep_archived_unmuted:flags.1?true keep_archived_folders:flags.2?true hide_read_marks:flags.3?true new_noncontact_peers_require_premium:flags.4?true display_gifts_button:flags.7?true noncontact_peers_paid_stars:flags.5?long disallowed_gifts:flags.6?DisallowedGiftsSettings = GlobalPrivacySettingsFields§
§archive_and_mute_new_noncontact_peers: bool§keep_archived_unmuted: bool§keep_archived_folders: bool§hide_read_marks: bool§noncontact_peers_paid_stars: Option<i64>§disallowed_gifts: Option<DisallowedGiftsSettings>Trait Implementations§
Source§impl Clone for GlobalPrivacySettings
impl Clone for GlobalPrivacySettings
Source§fn clone(&self) -> GlobalPrivacySettings
fn clone(&self) -> GlobalPrivacySettings
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 GlobalPrivacySettings
impl Debug for GlobalPrivacySettings
Source§impl Deserializable for GlobalPrivacySettings
impl Deserializable for GlobalPrivacySettings
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<GlobalPrivacySettings> for GlobalPrivacySettings
impl From<GlobalPrivacySettings> for GlobalPrivacySettings
Source§fn from(x: GlobalPrivacySettings) -> Self
fn from(x: GlobalPrivacySettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for GlobalPrivacySettings
impl Identifiable for GlobalPrivacySettings
Source§const CONSTRUCTOR_ID: u32 = 0xfe41b34f
const CONSTRUCTOR_ID: u32 = 0xfe41b34f
The constructor ID as specified in the TL schema.
Source§impl PartialEq for GlobalPrivacySettings
impl PartialEq for GlobalPrivacySettings
Source§impl Serializable for GlobalPrivacySettings
impl Serializable for GlobalPrivacySettings
Source§impl TryFrom<GlobalPrivacySettings> for GlobalPrivacySettings
impl TryFrom<GlobalPrivacySettings> for GlobalPrivacySettings
Source§type Error = GlobalPrivacySettings
type Error = GlobalPrivacySettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for GlobalPrivacySettings
Auto Trait Implementations§
impl Freeze for GlobalPrivacySettings
impl RefUnwindSafe for GlobalPrivacySettings
impl Send for GlobalPrivacySettings
impl Sync for GlobalPrivacySettings
impl Unpin for GlobalPrivacySettings
impl UnsafeUnpin for GlobalPrivacySettings
impl UnwindSafe for GlobalPrivacySettings
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