pub struct CommunityCapabilities {
pub manage_metadata: bool,
pub manage_channels: bool,
pub create_invite: bool,
pub kick: bool,
pub ban: bool,
pub manage_messages: bool,
pub manage_roles: bool,
}Expand description
The local user’s effective management capabilities in a community, resolved purely by the role engine (positions + permission bits; the owner is just the role at position 0 — NOTHING is owner-hardcoded). The frontend gates each management affordance on the matching bit, so an admin whose role carries a permission gets the exact same affordance as the owner.
Fields§
§manage_metadata: bool§manage_channels: bool§create_invite: bool§kick: bool§ban: bool§manage_messages: bool§manage_roles: boolTrait Implementations§
Source§impl Clone for CommunityCapabilities
impl Clone for CommunityCapabilities
Source§fn clone(&self) -> CommunityCapabilities
fn clone(&self) -> CommunityCapabilities
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 moreSource§impl Debug for CommunityCapabilities
impl Debug for CommunityCapabilities
Source§impl Default for CommunityCapabilities
impl Default for CommunityCapabilities
Source§fn default() -> CommunityCapabilities
fn default() -> CommunityCapabilities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommunityCapabilities
impl RefUnwindSafe for CommunityCapabilities
impl Send for CommunityCapabilities
impl Sync for CommunityCapabilities
impl Unpin for CommunityCapabilities
impl UnsafeUnpin for CommunityCapabilities
impl UnwindSafe for CommunityCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more