pub struct ForumTopicDetail {Show 18 fields
pub err: i32,
pub id: i64,
pub title: String,
pub topic_slug: Option<String>,
pub author_id: i64,
pub author_username: String,
pub category_slug: String,
pub category_title: String,
pub status: String,
pub body: String,
pub payload: Value,
pub view_count: i64,
pub created_at: String,
pub updated_at: Option<String>,
pub items: Vec<ForumPost>,
pub next_cursor: Option<i64>,
pub limit: i64,
pub view_count_before: i64,
}Expand description
Topic detail + posts (GET /api/forum/topics/{id} and /by-slug/{slug}).
Fields§
§err: i32Error code (0 = success).
id: i64Topic id.
title: StringTopic title.
topic_slug: Option<String>Canonical slug, when assigned.
Author user id.
Author display name.
category_slug: StringCategory slug.
category_title: StringCategory display title.
status: StringTopic status.
body: StringOP body (markdown).
payload: ValueFree-form payload JSONB, when set.
view_count: i64View count AFTER this fetch incremented it.
created_at: StringISO timestamp of creation.
updated_at: Option<String>ISO timestamp of last update, when present.
items: Vec<ForumPost>Posts (OP first, then replies ascending; after= cursor skips earlier).
next_cursor: Option<i64>Cursor for the next page of posts, when more exist.
limit: i64Page size actually applied.
view_count_before: i64View count before this fetch incremented it.
Trait Implementations§
Source§impl Clone for ForumTopicDetail
impl Clone for ForumTopicDetail
Source§fn clone(&self) -> ForumTopicDetail
fn clone(&self) -> ForumTopicDetail
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 ForumTopicDetail
impl Debug for ForumTopicDetail
Source§impl<'de> Deserialize<'de> for ForumTopicDetail
impl<'de> Deserialize<'de> for ForumTopicDetail
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 ForumTopicDetail
impl RefUnwindSafe for ForumTopicDetail
impl Send for ForumTopicDetail
impl Sync for ForumTopicDetail
impl Unpin for ForumTopicDetail
impl UnsafeUnpin for ForumTopicDetail
impl UnwindSafe for ForumTopicDetail
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