pub struct ServerChannel {
pub id: ChannelId,
pub server: ServerId,
pub name: String,
pub description: Option<String>,
pub icon: Option<Attachment>,
pub default_permissions: Option<ChannelPermissions>,
pub role_permissions: HashMap<RoleId, ChannelPermissions>,
pub nsfw: Option<bool>,
}Fields§
§id: ChannelId§server: ServerId§name: String§description: Option<String>§icon: Option<Attachment>§default_permissions: Option<ChannelPermissions>Permissions given to all users
role_permissions: HashMap<RoleId, ChannelPermissions>Permissions given to roles
nsfw: Option<bool>Trait Implementations§
Source§impl Clone for ServerChannel
impl Clone for ServerChannel
Source§fn clone(&self) -> ServerChannel
fn clone(&self) -> ServerChannel
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 ServerChannel
impl Debug for ServerChannel
Source§impl<'de> Deserialize<'de> for ServerChannel
impl<'de> Deserialize<'de> for ServerChannel
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 ServerChannel
impl PartialEq for ServerChannel
Source§impl Serialize for ServerChannel
impl Serialize for ServerChannel
impl Eq for ServerChannel
impl StructuralPartialEq for ServerChannel
Auto Trait Implementations§
impl Freeze for ServerChannel
impl RefUnwindSafe for ServerChannel
impl Send for ServerChannel
impl Sync for ServerChannel
impl Unpin for ServerChannel
impl UnwindSafe for ServerChannel
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