pub struct ThreadMetadata<'a> {
pub archived: bool,
pub auto_archive_duration: u32,
pub archive_timestamp: TitanString<'a>,
pub locked: bool,
pub invitable: Option<bool>,
}Expand description
Thread metadata.
Fields§
§archived: boolWhether the thread is archived.
auto_archive_duration: u32The thread will stop showing in the channel list after auto_archive_duration minutes of inactivity.
archive_timestamp: TitanString<'a>Timestamp when the thread’s archive status was last changed (ISO8601).
locked: boolWhether the thread is locked.
invitable: Option<bool>Whether non-moderators can add other non-moderators to the thread.
Trait Implementations§
Source§impl<'a> Clone for ThreadMetadata<'a>
impl<'a> Clone for ThreadMetadata<'a>
Source§fn clone(&self) -> ThreadMetadata<'a>
fn clone(&self) -> ThreadMetadata<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ThreadMetadata<'a>
impl<'a> Debug for ThreadMetadata<'a>
Source§impl<'de, 'a> Deserialize<'de> for ThreadMetadata<'a>
impl<'de, 'a> Deserialize<'de> for ThreadMetadata<'a>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadMetadata<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadMetadata<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Serialize for ThreadMetadata<'a>
impl<'a> Serialize for ThreadMetadata<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for ThreadMetadata<'a>
impl<'a> RefUnwindSafe for ThreadMetadata<'a>
impl<'a> Send for ThreadMetadata<'a>
impl<'a> Sync for ThreadMetadata<'a>
impl<'a> Unpin for ThreadMetadata<'a>
impl<'a> UnwindSafe for ThreadMetadata<'a>
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