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>, pub last_pin_timestamp: Option<DateTime<FixedOffset>>, }
Public voice or text channel within a server
Fields
id: ChannelId
name: String
server_id: ServerId
kind: ChannelType
permission_overwrites: Vec<PermissionOverwrite>
topic: Option<String>
position: i64
last_message_id: Option<MessageId>
bitrate: Option<u64>
user_limit: Option<u64>
last_pin_timestamp: Option<DateTime<FixedOffset>>
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
impl Debug for PublicChannel
[src]
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