Struct backend::models::content::PostInfo[][src]

pub struct PostInfo {
    pub title: String,
    pub burrow_id: i64,
    pub section: Vec<PostSection>,
    pub tag: Vec<String>,
    pub content: String,
}
Expand description

Post create information of request

Fields

  • PostInfo::title: Title of the post
  • PostInfo::burrow_id: Burrow id of the post
  • PostInfo::section: Section of the post
  • PostInfo::tag: Tag of the post
  • PostInfo::content: Content of the post

Fields

title: Stringburrow_id: i64section: Vec<PostSection>tag: Vec<String>content: String

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

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