pub enum ChatParticipant {
ChatParticipant(ChatParticipant),
Creator(ChatParticipantCreator),
Admin(ChatParticipantAdmin),
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for ChatParticipant
impl Clone for ChatParticipant
Source§fn clone(&self) -> ChatParticipant
fn clone(&self) -> ChatParticipant
Returns a duplicate 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 ChatParticipant
impl Debug for ChatParticipant
Source§impl Deserializable for ChatParticipant
impl Deserializable for ChatParticipant
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<ChatParticipant> for ChatParticipant
impl From<ChatParticipant> for ChatParticipant
Source§fn from(x: ChatParticipant) -> Self
fn from(x: ChatParticipant) -> Self
Converts to this type from the input type.
Source§impl From<ChatParticipantAdmin> for ChatParticipant
impl From<ChatParticipantAdmin> for ChatParticipant
Source§fn from(x: ChatParticipantAdmin) -> Self
fn from(x: ChatParticipantAdmin) -> Self
Converts to this type from the input type.
Source§impl From<ChatParticipantCreator> for ChatParticipant
impl From<ChatParticipantCreator> for ChatParticipant
Source§fn from(x: ChatParticipantCreator) -> Self
fn from(x: ChatParticipantCreator) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChatParticipant
impl PartialEq for ChatParticipant
Source§impl Serializable for ChatParticipant
impl Serializable for ChatParticipant
Source§impl TryFrom<ChatParticipant> for ChatParticipant
impl TryFrom<ChatParticipant> for ChatParticipant
Source§type Error = ChatParticipant
type Error = ChatParticipant
The type returned in the event of a conversion error.
Source§impl TryFrom<ChatParticipant> for ChatParticipantAdmin
impl TryFrom<ChatParticipant> for ChatParticipantAdmin
Source§type Error = ChatParticipant
type Error = ChatParticipant
The type returned in the event of a conversion error.
Source§impl TryFrom<ChatParticipant> for ChatParticipantCreator
impl TryFrom<ChatParticipant> for ChatParticipantCreator
Source§type Error = ChatParticipant
type Error = ChatParticipant
The type returned in the event of a conversion error.
impl StructuralPartialEq for ChatParticipant
Auto Trait Implementations§
impl Freeze for ChatParticipant
impl RefUnwindSafe for ChatParticipant
impl Send for ChatParticipant
impl Sync for ChatParticipant
impl Unpin for ChatParticipant
impl UnsafeUnpin for ChatParticipant
impl UnwindSafe for ChatParticipant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more