pub struct Post {Show 22 fields
pub id: PostId,
pub post_type: PostType,
pub accepted_answer_id: Option<PostId>,
pub parent_id: Option<PostId>,
pub creation_date: UtcDate,
pub score: i32,
pub view_count: Option<i32>,
pub body: String,
pub owner_user_id: Option<UserId>,
pub owner_display_name: Option<String>,
pub last_editor_user_id: Option<UserId>,
pub last_editor_display_name: Option<String>,
pub last_edit_date: Option<UtcDate>,
pub last_activity_date: UtcDate,
pub title: Option<String>,
pub tags: Option<String>,
pub answer_count: Option<i32>,
pub comment_count: Option<i32>,
pub favorite_count: Option<i32>,
pub closed_date: Option<UtcDate>,
pub community_owned_date: Option<UtcDate>,
pub content_license: String,
}Fields§
§id: PostId§post_type: PostType§accepted_answer_id: Option<PostId>AcceptedAnswerId (only present on questions)
parent_id: Option<PostId>ParentId (only present on answers)
creation_date: UtcDate§score: i32§view_count: Option<i32>§body: StringBody (as rendered HTML, not Markdown)
owner_user_id: Option<UserId>OwnerUserId (only present if user has not been deleted; always -1 for tag wiki entries, i.e. the community user owns them)
owner_display_name: Option<String>§last_editor_user_id: Option<UserId>§last_editor_display_name: Option<String>§last_edit_date: Option<UtcDate>§last_activity_date: UtcDate§title: Option<String>§answer_count: Option<i32>§comment_count: Option<i32>§favorite_count: Option<i32>§closed_date: Option<UtcDate>§community_owned_date: Option<UtcDate>§content_license: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
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
Source§impl Ord for Post
impl Ord for Post
Source§impl PartialOrd for Post
impl PartialOrd for Post
impl Eq for Post
impl StructuralPartialEq for Post
Auto Trait Implementations§
impl Freeze for Post
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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