pub enum MembershipState {
Pending,
Probation,
Active,
Suspended,
Banned,
Left,
}Expand description
A member’s lifecycle state (specification §6.4, ADR-0016). Independent of roles.
Variants§
Pending
Awaiting approval; may only read the community summary and leave.
Probation
Admitted with the admission policy’s newcomer restrictions.
Active
A full member.
Suspended
Temporarily removed from participation; keeps the binding.
Banned
Banned; the binding is revoked.
Left
Left or kicked.
Implementations§
Trait Implementations§
Source§impl Clone for MembershipState
impl Clone for MembershipState
Source§fn clone(&self) -> MembershipState
fn clone(&self) -> MembershipState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MembershipState
Source§impl Debug for MembershipState
impl Debug for MembershipState
Source§impl<'de> Deserialize<'de> for MembershipState
impl<'de> Deserialize<'de> for MembershipState
Source§fn 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
impl Eq for MembershipState
Source§impl Hash for MembershipState
impl Hash for MembershipState
Source§impl PartialEq for MembershipState
impl PartialEq for MembershipState
Source§impl Serialize for MembershipState
impl Serialize for MembershipState
impl StructuralPartialEq for MembershipState
Auto Trait Implementations§
impl Freeze for MembershipState
impl RefUnwindSafe for MembershipState
impl Send for MembershipState
impl Sync for MembershipState
impl Unpin for MembershipState
impl UnsafeUnpin for MembershipState
impl UnwindSafe for MembershipState
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