Struct twilight_model::channel::thread::PrivateThread [−][src]
pub struct PrivateThread {Show 15 fields
pub default_auto_archive_duration: Option<AutoArchiveDuration>,
pub guild_id: Option<GuildId>,
pub id: ChannelId,
pub invitable: Option<bool>,
pub kind: ChannelType,
pub last_message_id: Option<MessageId>,
pub member: Option<ThreadMember>,
pub member_count: u8,
pub message_count: u8,
pub name: String,
pub owner_id: Option<UserId>,
pub parent_id: Option<ChannelId>,
pub permission_overwrites: Vec<PermissionOverwrite>,
pub rate_limit_per_user: Option<u64>,
pub thread_metadata: ThreadMetadata,
}Fields
default_auto_archive_duration: Option<AutoArchiveDuration>guild_id: Option<GuildId>id: ChannelIdinvitable: Option<bool>Whether non-moderators can add other non-moderators to a thread.
Only available on private threads.
kind: ChannelTypelast_message_id: Option<MessageId>member: Option<ThreadMember>member_count: u8Max value of 50.
message_count: u8Max value of 50.
name: Stringowner_id: Option<UserId>parent_id: Option<ChannelId>permission_overwrites: Vec<PermissionOverwrite>rate_limit_per_user: Option<u64>thread_metadata: ThreadMetadataTrait 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 PrivateThread
impl Send for PrivateThread
impl Sync for PrivateThread
impl Unpin for PrivateThread
impl UnwindSafe for PrivateThread
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