pub struct Role { /* private fields */ }Expand description
A role of a community.
Implementations§
Source§impl Role
impl Role
Sourcepub fn managed_by(&self) -> Option<BotId>
pub fn managed_by(&self) -> Option<BotId>
The bot whose managed role this is: only that bot holds it, and only the owner’s grants change it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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