pub enum ChatMembersFilter {
Administrators(ChatMembersFilterAdministrators),
Banned(ChatMembersFilterBanned),
Bots(ChatMembersFilterBots),
Contacts(ChatMembersFilterContacts),
Members(ChatMembersFilterMembers),
Mention(ChatMembersFilterMention),
Restricted(ChatMembersFilterRestricted),
// some variants omitted
}
Expand description
Specifies the kind of chat members to return in searchChatMembers
Variants
Administrators(ChatMembersFilterAdministrators)
Tuple Fields
Returns the owner and administrators
Banned(ChatMembersFilterBanned)
Tuple Fields
Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel
Bots(ChatMembersFilterBots)
Tuple Fields
Returns bot members of the chat
Contacts(ChatMembersFilterContacts)
Tuple Fields
Returns contacts of the user
Members(ChatMembersFilterMembers)
Tuple Fields
Returns all chat members, including restricted chat members
Mention(ChatMembersFilterMention)
Tuple Fields
Returns users which can be mentioned in the chat
Restricted(ChatMembersFilterRestricted)
Tuple Fields
Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup
Implementations
pub fn on_administrators<F: FnOnce(&ChatMembersFilterAdministrators)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<ChatMembersFilter, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ChatMembersFilter, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChatMembersFilter
impl Send for ChatMembersFilter
impl Sync for ChatMembersFilter
impl Unpin for ChatMembersFilter
impl UnwindSafe for ChatMembersFilter
Blanket Implementations
Mutably borrows from an owned value. Read more