pub struct ChannelPermissions {
pub can_send_messages: bool,
pub can_invite: bool,
pub can_kick: bool,
pub can_modify: bool,
}Expand description
Channel permissions for members
Fields§
§can_send_messages: boolCan send messages to the channel
can_invite: boolCan invite other users to the channel
can_kick: boolCan kick members from the channel (moderator)
can_modify: boolCan modify channel settings (admin)
Implementations§
Trait Implementations§
Source§impl Clone for ChannelPermissions
impl Clone for ChannelPermissions
Source§fn clone(&self) -> ChannelPermissions
fn clone(&self) -> ChannelPermissions
Returns a duplicate of the value. Read more
1.0.0 · 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 ChannelPermissions
impl Debug for ChannelPermissions
Source§impl Default for ChannelPermissions
impl Default for ChannelPermissions
Source§impl<'de> Deserialize<'de> for ChannelPermissions
impl<'de> Deserialize<'de> for ChannelPermissions
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChannelPermissions
impl PartialEq for ChannelPermissions
Source§impl Serialize for ChannelPermissions
impl Serialize for ChannelPermissions
impl StructuralPartialEq for ChannelPermissions
Auto Trait Implementations§
impl Freeze for ChannelPermissions
impl RefUnwindSafe for ChannelPermissions
impl Send for ChannelPermissions
impl Sync for ChannelPermissions
impl Unpin for ChannelPermissions
impl UnwindSafe for ChannelPermissions
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