Struct backend::models::content::Post [−][src]
pub struct Post {
pub post_id: i64,
pub title: String,
pub burrow_id: i64,
pub section: Vec<PostSection>,
pub tag: Vec<String>,
pub create_time: DateTimeWithTimeZone,
pub update_time: DateTimeWithTimeZone,
pub post_state: i32,
pub post_type: i32,
pub like_num: i32,
pub collection_num: i32,
pub post_len: i32,
}
Expand description
Post information of database
Fields
Post::post_id
: Post id of the postPost::title
: Title of the postPost::burrow_id
: Burrow id of the postPost::section
: Section of the postPost::tag
: Tag of the postPost::create_time
: Created time of the postPost::update_time
: Updated time of the postPost::post_state
: State of the postPost::post_type
: Type of the postPost::like_num
: Total number of likes of the postPost::collection_num
: Total number of collections of the postPost::post_len
: Total number of replies of the post
Fields
post_id: i64
title: String
burrow_id: i64
section: Vec<PostSection>
tag: Vec<String>
create_time: DateTimeWithTimeZone
update_time: DateTimeWithTimeZone
post_state: i32
post_type: i32
like_num: i32
collection_num: i32
post_len: i32
Trait Implementations
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 RefUnwindSafe for Post
impl UnwindSafe for Post
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more