Struct twilight_model::channel::thread::PublicThread [−][src]
pub struct PublicThread {Show 13 fields
pub default_auto_archive_duration: Option<AutoArchiveDuration>,
pub guild_id: Option<GuildId>,
pub id: ChannelId,
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 rate_limit_per_user: Option<u64>,
pub thread_metadata: ThreadMetadata,
}
Fields
default_auto_archive_duration: Option<AutoArchiveDuration>
guild_id: Option<GuildId>
id: ChannelId
kind: ChannelType
last_message_id: Option<MessageId>
member: Option<ThreadMember>
member_count: u8
Max value of 50.
message_count: u8
Max value of 50.
name: String
owner_id: Option<UserId>
parent_id: Option<ChannelId>
rate_limit_per_user: Option<u64>
thread_metadata: ThreadMetadata
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 PublicThread
impl Send for PublicThread
impl Sync for PublicThread
impl Unpin for PublicThread
impl UnwindSafe for PublicThread
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