Struct lemmy_db_schema::source::comment::CommentForm[][src]

pub struct CommentForm {
    pub creator_id: PersonId,
    pub post_id: PostId,
    pub content: String,
    pub parent_id: Option<CommentId>,
    pub removed: Option<bool>,
    pub read: Option<bool>,
    pub published: Option<NaiveDateTime>,
    pub updated: Option<NaiveDateTime>,
    pub deleted: Option<bool>,
    pub ap_id: Option<DbUrl>,
    pub local: Option<bool>,
}

Fields

creator_id: PersonIdpost_id: PostIdcontent: Stringparent_id: Option<CommentId>removed: Option<bool>read: Option<bool>published: Option<NaiveDateTime>updated: Option<NaiveDateTime>deleted: Option<bool>ap_id: Option<DbUrl>local: Option<bool>

Trait Implementations

The table which Self::Changeset will be updating

The update statement this type represents

Convert self into the actual update statement being executed

The table which Self::Changeset will be updating

The update statement this type represents

Convert self into the actual update statement being executed

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

The VALUES clause to insert these records Read more

Construct Self::Values Read more

Insert self into a given table. Read more

The VALUES clause to insert these records Read more

Construct Self::Values Read more

Insert self into a given table. 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

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.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

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