#[non_exhaustive]pub struct ArchivedThreads {
pub threads: Vec<Channel>,
pub members: Vec<ThreadMember>,
pub has_more: bool,
}Expand description
The response of the archived thread lists.
discord.js counterpart: FetchedThreadsMore.
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.threads: Vec<Channel>The threads, newest archived (or highest ID) first.
members: Vec<ThreadMember>The current user’s membership of each returned thread they joined.
has_more: boolWhether more threads may follow.
Trait Implementations§
Source§impl Clone for ArchivedThreads
impl Clone for ArchivedThreads
Source§impl Debug for ArchivedThreads
impl Debug for ArchivedThreads
Source§impl<'de> Deserialize<'de> for ArchivedThreads
impl<'de> Deserialize<'de> for ArchivedThreads
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
Source§impl PartialEq for ArchivedThreads
impl PartialEq for ArchivedThreads
Source§impl Serialize for ArchivedThreads
impl Serialize for ArchivedThreads
impl StructuralPartialEq for ArchivedThreads
Auto Trait Implementations§
impl Forget for ArchivedThreads
impl Freeze for ArchivedThreads
impl Move for ArchivedThreads
impl RefUnwindSafe for ArchivedThreads
impl Send for ArchivedThreads
impl Sync for ArchivedThreads
impl Unpin for ArchivedThreads
impl UnsafeUnpin for ArchivedThreads
impl UnwindSafe for ArchivedThreads
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