Struct robespierre_models::channels::ServerChannel [−][src]
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: ChannelIdserver: ServerIdname: Stringdescription: 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
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ServerChannel
impl Send for ServerChannel
impl Sync for ServerChannel
impl Unpin for ServerChannel
impl UnwindSafe for ServerChannel
Blanket Implementations
Mutably borrows from an owned value. Read more