#[non_exhaustive]pub enum JoinRuleSummary {
Invite,
Knock,
Private,
Restricted(RestrictedSummary),
KnockRestricted(RestrictedSummary),
Public,
}
Expand description
The rule used for users wishing to join a room.
In contrast to the regular JoinRule
in ruma_events
, this enum holds only simplified
conditions for joining restricted rooms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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(RestrictedSummary)
Users can join the room if they are invited, or if they meet one of the conditions
described in the RestrictedSummary
.
KnockRestricted(RestrictedSummary)
Users can join the room if they are invited, or if they meet one of the conditions
described in the RestrictedSummary
, or they can request an invite to the room.
Public
Anyone can join the room without any prior action.
Implementations§
Trait Implementations§
Source§impl Clone for JoinRuleSummary
impl Clone for JoinRuleSummary
Source§fn clone(&self) -> JoinRuleSummary
fn clone(&self) -> JoinRuleSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for JoinRuleSummary
impl Debug for JoinRuleSummary
Source§impl Default for JoinRuleSummary
impl Default for JoinRuleSummary
Source§fn default() -> JoinRuleSummary
fn default() -> JoinRuleSummary
Source§impl<'de> Deserialize<'de> for JoinRuleSummary
impl<'de> Deserialize<'de> for JoinRuleSummary
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>,
Source§impl From<JoinRule> for JoinRuleSummary
impl From<JoinRule> for JoinRuleSummary
Source§impl From<JoinRuleKind> for JoinRuleSummary
impl From<JoinRuleKind> for JoinRuleSummary
Source§fn from(value: JoinRuleKind) -> Self
fn from(value: JoinRuleKind) -> Self
Source§impl PartialEq for JoinRuleSummary
impl PartialEq for JoinRuleSummary
Source§impl Serialize for JoinRuleSummary
impl Serialize for JoinRuleSummary
impl Eq for JoinRuleSummary
impl StructuralPartialEq for JoinRuleSummary
Auto Trait Implementations§
impl Freeze for JoinRuleSummary
impl RefUnwindSafe for JoinRuleSummary
impl Send for JoinRuleSummary
impl Sync for JoinRuleSummary
impl Unpin for JoinRuleSummary
impl UnwindSafe for JoinRuleSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.