#[repr(i32)]
pub enum GroupStatus {
Active,
InviteAccepted,
Deactivated,
}
Expand description
Group Status
Indicates the working status of a group.
Variants
Active
Group is Active
The group is in active state and we can post messages to this group.
InviteAccepted
Invite Accepted
We accepted the invitation to this group but we haven’t received the updated group info from the group administrator yet. We therefore can’t yet post messages into the group.
Deactivated
The group was deactivated
We either left the group or have been removed from the group by the group administrator. We therefore can’t post messages into this group anymore.
Implementations
sourceimpl GroupStatus
impl GroupStatus
sourceimpl GroupStatus
impl GroupStatus
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations
sourceimpl Clone for GroupStatus
impl Clone for GroupStatus
sourcefn clone(&self) -> GroupStatus
fn clone(&self) -> GroupStatus
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 GroupStatus
impl Debug for GroupStatus
sourceimpl Default for GroupStatus
impl Default for GroupStatus
sourcefn default() -> GroupStatus
fn default() -> GroupStatus
Returns the “default value” for a type. Read more
sourceimpl From<GroupStatus> for i32
impl From<GroupStatus> for i32
sourcefn from(value: GroupStatus) -> i32
fn from(value: GroupStatus) -> i32
Converts to this type from the input type.
sourceimpl Hash for GroupStatus
impl Hash for GroupStatus
sourceimpl Ord for GroupStatus
impl Ord for GroupStatus
sourceimpl PartialEq<GroupStatus> for GroupStatus
impl PartialEq<GroupStatus> for GroupStatus
sourceimpl PartialOrd<GroupStatus> for GroupStatus
impl PartialOrd<GroupStatus> for GroupStatus
sourcefn partial_cmp(&self, other: &GroupStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &GroupStatus) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for GroupStatus
impl Eq for GroupStatus
impl StructuralEq for GroupStatus
impl StructuralPartialEq for GroupStatus
Auto Trait Implementations
impl RefUnwindSafe for GroupStatus
impl Send for GroupStatus
impl Sync for GroupStatus
impl Unpin for GroupStatus
impl UnwindSafe for GroupStatus
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.