pub struct ThreadInfo {Show 13 fields
pub op_post: Post,
pub last_replies: Vec<Post>,
pub sticky: bool,
pub closed: bool,
pub subject: Option<String>,
pub posts_omitted: i32,
pub images_omitted: i32,
pub n_replies: i32,
pub n_images: i32,
pub bump_limit_reached: bool,
pub image_limit_reached: bool,
pub last_modified: u64,
pub semantic_url: String,
}
Expand description
Represents a thread as seen from the catalog.
To get all the posts in a thread, call [Client::get_full_thread]
.
Fields§
§op_post: Post
The Post
of the OP.
last_replies: Vec<Post>
Last replies to this thread.
sticky: bool
true
if the thread is pinned on top of the page.
closed: bool
true
if the thread is closed.
subject: Option<String>
The threads title, if any.
posts_omitted: i32
The number of omitted replies.
images_omitted: i32
The number of omitted images.
n_replies: i32
The total count of replies.
n_images: i32
The total number of images in a thread.
bump_limit_reached: bool
true
if the bump limit is reached.
image_limit_reached: bool
true
if the image limit is reached.
last_modified: u64
The UNIX timestamp of the time this thread was last modified.
semantic_url: String
SEO URL slug for thread.
Implementations§
Source§impl ThreadInfo
impl ThreadInfo
Sourcepub fn thread_no(&self) -> u32
pub fn thread_no(&self) -> u32
Returns the ID/no of the thread.
Pass this along with the boards abbreviation to
crate::client::Client::get_full_thread
to get a full Thread
object.
Trait Implementations§
Source§impl Clone for ThreadInfo
impl Clone for ThreadInfo
Source§fn clone(&self) -> ThreadInfo
fn clone(&self) -> ThreadInfo
Returns a copy 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 Debug for ThreadInfo
impl Debug for ThreadInfo
Source§impl<'de> Deserialize<'de> for ThreadInfo
impl<'de> Deserialize<'de> for ThreadInfo
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 ThreadInfo
impl RefUnwindSafe for ThreadInfo
impl Send for ThreadInfo
impl Sync for ThreadInfo
impl Unpin for ThreadInfo
impl UnwindSafe for ThreadInfo
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