Enum tdlib::enums::ChatMemberStatus
source · [−]pub enum ChatMemberStatus {
Creator(ChatMemberStatusCreator),
Administrator(ChatMemberStatusAdministrator),
Member,
Restricted(ChatMemberStatusRestricted),
Left,
Banned(ChatMemberStatusBanned),
}
Variants
Creator(ChatMemberStatusCreator)
The user is the owner of the chat and has all the administrator privileges
Administrator(ChatMemberStatusAdministrator)
The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges
Member
The user is a member of the chat, without any additional privileges or restrictions
Restricted(ChatMemberStatusRestricted)
The user is under certain restrictions in the chat. Not supported in basic groups and channels
Left
The user or the chat is not a chat member
Banned(ChatMemberStatusBanned)
The user or the chat was banned (and hence is not a member of the chat). Implies the user can’t return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat
Trait Implementations
sourceimpl Clone for ChatMemberStatus
impl Clone for ChatMemberStatus
sourcefn clone(&self) -> ChatMemberStatus
fn clone(&self) -> ChatMemberStatus
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 ChatMemberStatus
impl Debug for ChatMemberStatus
sourceimpl<'de> Deserialize<'de> for ChatMemberStatus
impl<'de> Deserialize<'de> for ChatMemberStatus
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 PartialEq<ChatMemberStatus> for ChatMemberStatus
impl PartialEq<ChatMemberStatus> for ChatMemberStatus
sourcefn eq(&self, other: &ChatMemberStatus) -> bool
fn eq(&self, other: &ChatMemberStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChatMemberStatus) -> bool
fn ne(&self, other: &ChatMemberStatus) -> bool
This method tests for !=
.
sourceimpl Serialize for ChatMemberStatus
impl Serialize for ChatMemberStatus
impl StructuralPartialEq for ChatMemberStatus
Auto Trait Implementations
impl RefUnwindSafe for ChatMemberStatus
impl Send for ChatMemberStatus
impl Sync for ChatMemberStatus
impl Unpin for ChatMemberStatus
impl UnwindSafe for ChatMemberStatus
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more