Enum ruma_common::events::room::join_rules::JoinRule
source · [−]pub enum JoinRule {
Invite,
Knock,
Private,
Restricted(Restricted),
KnockRestricted(Restricted),
Public,
// some variants omitted
}events only.Expand description
The rule used for users wishing to join this room.
This type can hold an arbitrary string. To check for values that are not available as a
documented variant here, use its string representation, obtained through .as_str().
Variants
Invite
A user who wishes to join the room must first receive an invite to the room from someone already inside of the room.
Knock
Users can join the room if they are invited, or they can request an invite to the room.
They can be allowed (invited) or denied (kicked/banned) access.
Private
Reserved but not yet implemented by the Matrix specification.
Restricted(Restricted)
Users can join the room if they are invited, or if they meet any of the conditions
described in a set of AllowRules.
KnockRestricted(Restricted)
Users can join the room if they are invited, or if they meet any of the conditions
described in a set of AllowRules, or they can request an invite to the room.
Public
Anyone can join the room without any prior action.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for JoinRule
impl<'de> Deserialize<'de> for JoinRule
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>,
impl Eq for JoinRule
impl StructuralEq for JoinRule
impl StructuralPartialEq for JoinRule
Auto Trait Implementations
impl RefUnwindSafe for JoinRule
impl Send for JoinRule
impl Sync for JoinRule
impl Unpin for JoinRule
impl UnwindSafe for JoinRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.