Enum frankenstein::objects::ChatMember
source · [−]pub enum ChatMember {
Owner(ChatMemberOwner),
Administrator(ChatMemberAdministrator),
Member(ChatMemberMember),
Restricted(ChatMemberRestricted),
Left(ChatMemberLeft),
Banned(ChatMemberBanned),
}
Variants
Owner(ChatMemberOwner)
Administrator(ChatMemberAdministrator)
Member(ChatMemberMember)
Restricted(ChatMemberRestricted)
Left(ChatMemberLeft)
Banned(ChatMemberBanned)
Trait Implementations
sourceimpl Clone for ChatMember
impl Clone for ChatMember
sourcefn clone(&self) -> ChatMember
fn clone(&self) -> ChatMember
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 ChatMember
impl Debug for ChatMember
sourceimpl<'de> Deserialize<'de> for ChatMember
impl<'de> Deserialize<'de> for ChatMember
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<ChatMember> for ChatMember
impl PartialEq<ChatMember> for ChatMember
sourcefn eq(&self, other: &ChatMember) -> bool
fn eq(&self, other: &ChatMember) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChatMember) -> bool
fn ne(&self, other: &ChatMember) -> bool
This method tests for !=
.
sourceimpl Serialize for ChatMember
impl Serialize for ChatMember
impl StructuralPartialEq for ChatMember
Auto Trait Implementations
impl RefUnwindSafe for ChatMember
impl Send for ChatMember
impl Sync for ChatMember
impl Unpin for ChatMember
impl UnwindSafe for ChatMember
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