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 post
  • Post::title: Title of the post
  • Post::burrow_id: Burrow id of the post
  • Post::section: Section of the post
  • Post::tag: Tag of the post
  • Post::create_time: Created time of the post
  • Post::update_time: Updated time of the post
  • Post::post_state: State of the post
  • Post::post_type: Type of the post
  • Post::like_num: Total number of likes of the post
  • Post::collection_num: Total number of collections of the post
  • Post::post_len: Total number of replies of the post

Fields

post_id: i64title: Stringburrow_id: i64section: Vec<PostSection>tag: Vec<String>create_time: DateTimeWithTimeZoneupdate_time: DateTimeWithTimeZonepost_state: i32post_type: i32like_num: i32collection_num: i32post_len: i32

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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