pub struct ForumTopic {Show 13 fields
pub id: i64,
pub title: String,
pub topic_slug: Option<String>,
pub author_id: i64,
pub author_username: String,
pub reply_count: i64,
pub vote_score: i64,
pub view_count: i64,
pub last_post_id: Option<i64>,
pub status: String,
pub last_activity_at: String,
pub created_at: String,
pub unread: bool,
}Expand description
A topic row in the category listing (GET /api/forum/topics item).
Fields§
§id: i64Topic id.
title: StringTopic title.
topic_slug: Option<String>Canonical slug {slugified-title}-{id}, when assigned.
Author user id.
Author display name.
reply_count: i64Number of replies (visible posts − OP).
vote_score: i64Legacy vote score (v2 keeps this at 0; mod points are the score system).
view_count: i64View count.
last_post_id: Option<i64>Id of the newest post, when present.
status: StringTopic status: open | locked | pinned | removed.
last_activity_at: StringISO timestamp of last activity.
created_at: StringISO timestamp of creation.
unread: boolWhether the current user has unread posts in this topic.
Trait Implementations§
Source§impl Clone for ForumTopic
impl Clone for ForumTopic
Source§fn clone(&self) -> ForumTopic
fn clone(&self) -> ForumTopic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForumTopic
impl Debug for ForumTopic
Source§impl<'de> Deserialize<'de> for ForumTopic
impl<'de> Deserialize<'de> for ForumTopic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __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 ForumTopic
impl RefUnwindSafe for ForumTopic
impl Send for ForumTopic
impl Sync for ForumTopic
impl Unpin for ForumTopic
impl UnsafeUnpin for ForumTopic
impl UnwindSafe for ForumTopic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more