#[non_exhaustive]pub struct ThreadMetadata {
pub archived: bool,
pub auto_archive_duration: AutoArchiveDuration,
pub archive_timestamp: Timestamp,
pub locked: bool,
pub invitable: bool,
pub create_timestamp: Option<Timestamp>,
}Expand description
discord.js counterpart: the thread fields of ThreadChannel (archived, locked, …).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.archived: boolWhether the thread is archived.
auto_archive_duration: AutoArchiveDurationAfter how long without activity the thread is archived.
archive_timestamp: TimestampWhen the archive status last changed (used to compute recent activity).
locked: boolWhether the thread is locked: only members with MANAGE_THREADS can unarchive it.
invitable: boolWhether non-moderators can add other non-moderators (private threads only).
create_timestamp: Option<Timestamp>When the thread was created; only set for threads created after 2022-01-09.
Trait Implementations§
Source§impl Clone for ThreadMetadata
impl Clone for ThreadMetadata
impl Copy for ThreadMetadata
Source§impl Debug for ThreadMetadata
impl Debug for ThreadMetadata
Source§impl<'de> Deserialize<'de> for ThreadMetadata
impl<'de> Deserialize<'de> for ThreadMetadata
Source§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
impl Eq for ThreadMetadata
Source§impl Hash for ThreadMetadata
impl Hash for ThreadMetadata
Source§impl PartialEq for ThreadMetadata
impl PartialEq for ThreadMetadata
Source§impl Serialize for ThreadMetadata
impl Serialize for ThreadMetadata
impl StructuralPartialEq for ThreadMetadata
Auto Trait Implementations§
impl Forget for ThreadMetadata
impl Freeze for ThreadMetadata
impl Move for ThreadMetadata
impl RefUnwindSafe for ThreadMetadata
impl Send for ThreadMetadata
impl Sync for ThreadMetadata
impl Unpin for ThreadMetadata
impl UnsafeUnpin for ThreadMetadata
impl UnwindSafe for ThreadMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more