pub struct Channel {Show 14 fields
pub id: Snowflake,
pub guild_id: Snowflake,
pub name: String,
pub channel_type: ChannelType,
pub sub_type: ChannelSubType,
pub position: i64,
pub parent_id: Snowflake,
pub owner_id: Snowflake,
pub private_type: PrivateType,
pub private_user_ids: Vec<String>,
pub speak_permission: SpeakPermission,
pub application_id: Snowflake,
pub permissions: String,
pub op_user_id: Snowflake,
}Expand description
Represents a channel in a guild.
Fields§
§id: SnowflakeThe channel’s unique ID
guild_id: SnowflakeThe guild ID this channel belongs to
name: StringThe channel’s name
channel_type: ChannelTypeThe type of channel
sub_type: ChannelSubTypeThe subtype of channel
position: i64The position of this channel in the channel list
parent_id: SnowflakeThe ID of the parent category
owner_id: SnowflakeThe ID of the channel owner
private_type: PrivateTypeThe private type of the channel
private_user_ids: Vec<String>User IDs included when creating a private channel
speak_permission: SpeakPermissionThe speak permission setting
application_id: SnowflakeThe application ID for application channels
permissions: StringThe permissions string
op_user_id: SnowflakeThe operator user ID
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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