Struct rust_tdlib::types::ChatFilter
source · [−]pub struct ChatFilter { /* private fields */ }Expand description
Represents a filter of user chats
Implementations
sourceimpl 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
sourceimpl AsRef<ChatFilter> for ChatFilter
impl AsRef<ChatFilter> for ChatFilter
sourcefn as_ref(&self) -> &ChatFilter
fn as_ref(&self) -> &ChatFilter
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ChatFilter
impl Clone for ChatFilter
sourcefn clone(&self) -> ChatFilter
fn clone(&self) -> ChatFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ChatFilter
impl Debug for ChatFilter
sourceimpl Default for ChatFilter
impl Default for ChatFilter
sourcefn default() -> ChatFilter
fn default() -> ChatFilter
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ChatFilter
impl<'de> Deserialize<'de> for ChatFilter
sourcefn 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
sourceimpl Serialize for ChatFilter
impl Serialize for ChatFilter
Auto Trait Implementations
impl RefUnwindSafe for ChatFilter
impl Send for ChatFilter
impl Sync for ChatFilter
impl Unpin for ChatFilter
impl UnwindSafe for ChatFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more