pub struct ArchiveChatListSettings {
pub archive_and_mute_new_chats_from_unknown_users: bool,
pub keep_unmuted_chats_archived: bool,
pub keep_chats_from_folders_archived: bool,
}Expand description
Contains settings for automatic moving of chats to and from the Archive chat lists
Fields§
§archive_and_mute_new_chats_from_unknown_users: boolTrue, if new chats from non-contacts will be automatically archived and muted. Can be set to true only if the option “can_archive_and_mute_new_chats_from_unknown_users” is true
keep_unmuted_chats_archived: boolTrue, if unmuted chats will be kept in the Archive chat list when they get a new message
keep_chats_from_folders_archived: boolTrue, if unmuted chats, that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_unmuted_chats_archived == true
Trait Implementations§
Source§impl Clone for ArchiveChatListSettings
impl Clone for ArchiveChatListSettings
Source§fn clone(&self) -> ArchiveChatListSettings
fn clone(&self) -> ArchiveChatListSettings
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 ArchiveChatListSettings
impl Debug for ArchiveChatListSettings
Source§impl Default for ArchiveChatListSettings
impl Default for ArchiveChatListSettings
Source§fn default() -> ArchiveChatListSettings
fn default() -> ArchiveChatListSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArchiveChatListSettings
impl<'de> Deserialize<'de> for ArchiveChatListSettings
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 ArchiveChatListSettings
impl PartialEq for ArchiveChatListSettings
Source§impl Serialize for ArchiveChatListSettings
impl Serialize for ArchiveChatListSettings
impl StructuralPartialEq for ArchiveChatListSettings
Auto Trait Implementations§
impl Freeze for ArchiveChatListSettings
impl RefUnwindSafe for ArchiveChatListSettings
impl Send for ArchiveChatListSettings
impl Sync for ArchiveChatListSettings
impl Unpin for ArchiveChatListSettings
impl UnwindSafe for ArchiveChatListSettings
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