pub struct TopicDetailDTO {Show 27 fields
pub id: String,
pub title: String,
pub kind: String,
pub author: TopicAuthorDTO,
pub tags: Vec<UserSubjectTagDTO>,
pub reply_count: u64,
pub view_count: u64,
pub like_count: u64,
pub bookmark_count: u64,
pub collection: Option<Value>,
pub closed_at: Option<String>,
pub closed_by: Option<Value>,
pub pinned: bool,
pub pinned_globally: bool,
pub pinned_tag_id: Option<String>,
pub pinned_at: Option<String>,
pub pinned_until: Option<String>,
pub last_activity_at: String,
pub created_at: String,
pub edited_at: Option<String>,
pub updated_at: String,
pub first_post: TopicPostDTO,
pub replies_truncated: bool,
pub events: Vec<Value>,
pub events_truncated: bool,
pub viewer_capabilities: TopicViewerCapabilitiesDTO,
pub viewer_state: TopicViewerStateDTO,
}Fields§
§id: String§title: String§kind: String§reply_count: u64§view_count: u64§like_count: u64§bookmark_count: u64§collection: Option<Value>所属合集,结构未文档化。
closed_at: Option<String>§closed_by: Option<Value>关闭操作人;文档标注为 DateTime/String,实际类型未验证。
pinned: bool§pinned_globally: bool§pinned_tag_id: Option<String>§pinned_at: Option<String>§pinned_until: Option<String>§last_activity_at: String§created_at: String§edited_at: Option<String>§updated_at: String§first_post: TopicPostDTO§replies_truncated: bool§events: Vec<Value>主题事件流,结构未文档化。
events_truncated: bool§viewer_capabilities: TopicViewerCapabilitiesDTO§viewer_state: TopicViewerStateDTOTrait Implementations§
Source§impl Clone for TopicDetailDTO
impl Clone for TopicDetailDTO
Source§impl Debug for TopicDetailDTO
impl Debug for TopicDetailDTO
Source§impl<'de> Deserialize<'de> for TopicDetailDTO
impl<'de> Deserialize<'de> for TopicDetailDTO
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 TopicDetailDTO
impl RefUnwindSafe for TopicDetailDTO
impl Send for TopicDetailDTO
impl Sync for TopicDetailDTO
impl Unpin for TopicDetailDTO
impl UnsafeUnpin for TopicDetailDTO
impl UnwindSafe for TopicDetailDTO
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