Struct twilight_model::channel::TextChannel [−][src]
pub struct TextChannel {
pub guild_id: Option<GuildId>,
pub id: ChannelId,
pub kind: ChannelType,
pub last_message_id: Option<MessageId>,
pub last_pin_timestamp: Option<Timestamp>,
pub name: String,
pub nsfw: bool,
pub parent_id: Option<ChannelId>,
pub permission_overwrites: Vec<PermissionOverwrite>,
pub position: i64,
pub rate_limit_per_user: Option<u64>,
pub topic: Option<String>,
}Fields
guild_id: Option<GuildId>id: ChannelIdkind: ChannelTypelast_message_id: Option<MessageId>last_pin_timestamp: Option<Timestamp>name: Stringnsfw: boolparent_id: Option<ChannelId>permission_overwrites: Vec<PermissionOverwrite>position: i64rate_limit_per_user: Option<u64>topic: Option<String>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 TextChannel
impl Send for TextChannel
impl Sync for TextChannel
impl Unpin for TextChannel
impl UnwindSafe for TextChannel
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more