pub enum ParticipantStatus {
Member,
Creator,
Admin,
Restricted,
Left,
Banned,
}Expand description
The role of a participant.
Variants§
Member
Regular member.
Creator
The channel/group creator.
Admin
Admin (may have custom title).
Restricted
Restricted / banned user.
Left
Left the group.
Banned
Kicked (banned) from the group.
Trait Implementations§
Source§impl Clone for ParticipantStatus
impl Clone for ParticipantStatus
Source§fn clone(&self) -> ParticipantStatus
fn clone(&self) -> ParticipantStatus
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 ParticipantStatus
impl Debug for ParticipantStatus
Source§impl PartialEq for ParticipantStatus
impl PartialEq for ParticipantStatus
impl Eq for ParticipantStatus
impl StructuralPartialEq for ParticipantStatus
Auto Trait Implementations§
impl Freeze for ParticipantStatus
impl RefUnwindSafe for ParticipantStatus
impl Send for ParticipantStatus
impl Sync for ParticipantStatus
impl Unpin for ParticipantStatus
impl UnsafeUnpin for ParticipantStatus
impl UnwindSafe for ParticipantStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more