Struct rust_tdlib::types::ChatFilter
source · pub struct ChatFilter { /* private fields */ }
Expand description
Represents a filter of user chats
Implementations§
source§impl ChatFilter
impl ChatFilter
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatFilterBuilder
pub fn title(&self) -> &String
pub fn icon_name(&self) -> &String
pub fn pinned_chat_ids(&self) -> &Vec<i64>
pub fn included_chat_ids(&self) -> &Vec<i64>
pub fn excluded_chat_ids(&self) -> &Vec<i64>
pub fn exclude_muted(&self) -> bool
pub fn exclude_read(&self) -> bool
pub fn exclude_archived(&self) -> bool
pub fn include_contacts(&self) -> bool
pub fn include_non_contacts(&self) -> bool
pub fn include_bots(&self) -> bool
pub fn include_groups(&self) -> bool
pub fn include_channels(&self) -> bool
Trait Implementations§
source§impl AsRef<ChatFilter> for ChatFilter
impl AsRef<ChatFilter> for ChatFilter
source§fn as_ref(&self) -> &ChatFilter
fn as_ref(&self) -> &ChatFilter
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ChatFilter
impl Clone for ChatFilter
source§fn clone(&self) -> ChatFilter
fn clone(&self) -> ChatFilter
Returns a copy 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 ChatFilter
impl Debug for ChatFilter
source§impl Default for ChatFilter
impl Default for ChatFilter
source§fn default() -> ChatFilter
fn default() -> ChatFilter
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChatFilter
impl<'de> Deserialize<'de> for ChatFilter
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