pub struct Thread {
pub id: String,
pub title: String,
pub author_username: String,
pub replies: i64,
pub views: i64,
pub last_post_date: String,
pub last_post_username: String,
pub unread: i64,
}Expand description
Represents a single thread within a list of threads.
Fields§
§id: String§title: String§replies: i64§views: i64§last_post_date: String§last_post_username: String§unread: i64Zero if there are no unread posts in this thread. Otherwise, the number of unread posts.
Implementations§
Trait Implementations§
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