pub struct Thread {
pub no: u32,
pub sticky: bool,
pub closed: bool,
pub subject: Option<String>,
pub unique_posters: i32,
pub posts: Vec<Post>,
}Expand description
Represents a thread, with every post included.
Obtained by calling crate::client::Client::get_full_thread with
the boards abbreviation(the abv field) and the no of a ThreadInfo.
Fields§
§no: u32The no of the thread.
sticky: booltrue if the thread is pinned on top of the page.
closed: booltrue if the thread is closed.
subject: Option<String>The threads title, if any.
unique_posters: i32Number of unique posters in this thread.
posts: Vec<Post>Every post in this thread.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
Source§fn deserialize<D>(des: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(des: 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 Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
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