pub enum TargetStateRule {
MustBeActiveMember,
Any,
MustBeBanned,
}Expand description
What state a kick/ban/unban target must currently be in for the action
to proceed. pub(super) — also routes::matrix::moderation’s (P11) own
room-power fallback path reuses this exact rule set, so a kick/ban/unban
reached through /api/matrix-admin/.../moderate never drifts from the
same action reached through this module’s own /kick//ban//unban.
Variants§
MustBeActiveMember
kick: the target must currently be an active member (join/invite).
Any
ban: any current state is fine (banning a non-member pre-empts a future join attempt).
MustBeBanned
unban: the target must currently be banned.
Trait Implementations§
Source§impl Clone for TargetStateRule
impl Clone for TargetStateRule
impl Copy for TargetStateRule
Source§impl Debug for TargetStateRule
impl Debug for TargetStateRule
impl Eq for TargetStateRule
Source§impl PartialEq for TargetStateRule
impl PartialEq for TargetStateRule
impl StructuralPartialEq for TargetStateRule
Auto Trait Implementations§
impl Freeze for TargetStateRule
impl RefUnwindSafe for TargetStateRule
impl Send for TargetStateRule
impl Sync for TargetStateRule
impl Unpin for TargetStateRule
impl UnsafeUnpin for TargetStateRule
impl UnwindSafe for TargetStateRule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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
Compare self to
key and return true if they are equal.