pub struct ForumPost {Show 14 fields
    pub id: ForumPostId,
    pub thread_id: ForumThreadId,
    pub author: ForumThreadAuthor,
    pub is_legacy: bool,
    pub is_topic: bool,
    pub is_edited: bool,
    pub is_pinned: bool,
    pub created_time: i32,
    pub edited_by: Option<UserId>,
    pub has_quote: bool,
    pub quoted_post_id: Option<i32>,
    pub content: String,
    pub likes: i32,
    pub dislikes: i32,
}Fields§
§id: ForumPostId§thread_id: ForumThreadId§is_legacy: boolIndicates whether post was made using the old formatting engine which doesn’t use HTML.
is_topic: bool§is_edited: bool§is_pinned: bool§created_time: i32§edited_by: Option<UserId>§has_quote: bool§quoted_post_id: Option<i32>§content: Stringdepending on the input ‘cat’ parameter, this will either return raw value (with HTML) or plain text. Legacy posts are returned as is, they can’t be stripped of tags.
likes: i32§dislikes: i32Trait Implementations§
Source§impl<'de> Deserialize<'de> for ForumPost
 
impl<'de> Deserialize<'de> for ForumPost
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
impl StructuralPartialEq for ForumPost
Auto Trait Implementations§
impl Freeze for ForumPost
impl RefUnwindSafe for ForumPost
impl Send for ForumPost
impl Sync for ForumPost
impl Unpin for ForumPost
impl UnwindSafe for ForumPost
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