Struct discord::model::PublicChannel [] [src]

pub struct PublicChannel {
    pub id: ChannelId,
    pub name: String,
    pub server_id: ServerId,
    pub kind: ChannelType,
    pub permission_overwrites: Vec<PermissionOverwrite>,
    pub topic: Option<String>,
    pub position: i64,
    pub last_message_id: Option<MessageId>,
    pub bitrate: Option<u64>,
    pub user_limit: Option<u64>,
}

Public voice or text channel within a server

Fields

id
name
server_id
kind
permission_overwrites
topic
position
last_message_id
bitrate
user_limit

Methods

impl PublicChannel
[src]

fn decode(value: Value) -> Result<PublicChannel>

fn decode_server(value: Value, server_id: ServerId) -> Result<PublicChannel>

fn mention(&self) -> Mention

Return a Mention which will link to this channel.

Trait Implementations

Derived Implementations

impl Clone for PublicChannel
[src]

fn clone(&self) -> PublicChannel

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for PublicChannel
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.