pub struct ChannelOneOf4 {
pub channel_type: ChannelType,
pub _id: String,
pub server: String,
pub name: String,
pub description: Option<Option<String>>,
pub icon: Option<Option<Box<ChannelOneOf2Icon>>>,
pub default_permissions: Option<Option<Box<ChannelOneOf3DefaultPermissions>>>,
pub role_permissions: Option<HashMap<String, OverrideField>>,
pub nsfw: Option<bool>,
}Expand description
ChannelOneOf4 : Voice channel belonging to a server
Fields§
§channel_type: ChannelType§_id: StringUnique Id
server: StringId of the server this channel belongs to
name: StringDisplay name of the channel
description: Option<Option<String>>Channel description
icon: Option<Option<Box<ChannelOneOf2Icon>>>§default_permissions: Option<Option<Box<ChannelOneOf3DefaultPermissions>>>§role_permissions: Option<HashMap<String, OverrideField>>Permissions assigned based on role to this channel
nsfw: Option<bool>Whether this channel is marked as not safe for work
Implementations§
Source§impl ChannelOneOf4
impl ChannelOneOf4
Sourcepub fn new(
channel_type: ChannelType,
_id: String,
server: String,
name: String,
) -> ChannelOneOf4
pub fn new( channel_type: ChannelType, _id: String, server: String, name: String, ) -> ChannelOneOf4
Voice channel belonging to a server
Trait Implementations§
Source§impl Clone for ChannelOneOf4
impl Clone for ChannelOneOf4
Source§fn clone(&self) -> ChannelOneOf4
fn clone(&self) -> ChannelOneOf4
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 ChannelOneOf4
impl Debug for ChannelOneOf4
Source§impl Default for ChannelOneOf4
impl Default for ChannelOneOf4
Source§fn default() -> ChannelOneOf4
fn default() -> ChannelOneOf4
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelOneOf4
impl<'de> Deserialize<'de> for ChannelOneOf4
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 ChannelOneOf4
impl PartialEq for ChannelOneOf4
Source§fn eq(&self, other: &ChannelOneOf4) -> bool
fn eq(&self, other: &ChannelOneOf4) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChannelOneOf4
impl Serialize for ChannelOneOf4
impl StructuralPartialEq for ChannelOneOf4
Auto Trait Implementations§
impl Freeze for ChannelOneOf4
impl RefUnwindSafe for ChannelOneOf4
impl Send for ChannelOneOf4
impl Sync for ChannelOneOf4
impl Unpin for ChannelOneOf4
impl UnsafeUnpin for ChannelOneOf4
impl UnwindSafe for ChannelOneOf4
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