Struct twilight_model::channel::thread::NewsThread [−][src]
pub struct NewsThread {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: ChannelIdkind: 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>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 NewsThread
impl Send for NewsThread
impl Sync for NewsThread
impl Unpin for NewsThread
impl UnwindSafe for NewsThread
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