pub struct ThreadMetadata {
pub archived: bool,
pub auto_archive_duration: u16,
pub archive_timestamp: String,
pub locked: bool,
pub invitable: Option<bool>,
pub create_timestamp: Option<String>,
}
Expand description
Fields§
§archived: bool
whether the thread is archived
auto_archive_duration: u16
the thread will stop showing in the channel list after auto_archive_duration minutes of inactivity, can be set to: 60, 1440, 4320, 10080
archive_timestamp: String
timestamp when the thread’s archive status was last changed, used for calculating recent activity
locked: bool
whether the thread is locked; when a thread is locked, only users with MANAGE_THREADS can unarchive it
invitable: Option<bool>
whether non-moderators can add other non-moderators to a thread; only available on private threads
create_timestamp: Option<String>
timestamp when the thread was created; only populated for threads created after 2022-01-09
Trait Implementations§
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
Auto Trait Implementations§
impl Freeze for ThreadMetadata
impl RefUnwindSafe for ThreadMetadata
impl Send for ThreadMetadata
impl Sync for ThreadMetadata
impl Unpin 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