twilight_model/channel/thread/
listing.rs

1use crate::channel::{thread::ThreadMember, Channel};
2use serde::{Deserialize, Serialize};
3
4/// Response body returned in thread listing methods.
5#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
6pub struct ThreadsListing {
7    /// Whether there are potentially more threads that could be returned.
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub has_more: Option<bool>,
10    /// A thread member object for each returned thread the current user has joined.
11    pub members: Vec<ThreadMember>,
12    /// List of threads.
13    pub threads: Vec<Channel>,
14}