twilight_model/channel/thread/
listing.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::channel::{thread::ThreadMember, Channel};
use serde::{Deserialize, Serialize};

/// Response body returned in thread listing methods.
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub struct ThreadsListing {
    /// Whether there are potentially more threads that could be returned.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub has_more: Option<bool>,
    /// A thread member object for each returned thread the current user has joined.
    pub members: Vec<ThreadMember>,
    /// List of threads.
    pub threads: Vec<Channel>,
}