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: PersonId
post_id: PostId
content: String
parent_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
type Changeset = <(Eq<creator_id, &'update PersonId>, Eq<post_id, &'update PostId>, Eq<content, &'update String>, Option<Eq<parent_id, &'update CommentId>>, Option<Eq<removed, &'update bool>>, Option<Eq<read, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<deleted, &'update bool>>, Option<Eq<ap_id, &'update DbUrl>>, Option<Eq<local, &'update bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<creator_id, &'update PersonId>, Eq<post_id, &'update PostId>, Eq<content, &'update String>, Option<Eq<parent_id, &'update CommentId>>, Option<Eq<removed, &'update bool>>, Option<Eq<read, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<deleted, &'update bool>>, Option<Eq<ap_id, &'update DbUrl>>, Option<Eq<local, &'update bool>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
type Changeset = <(Eq<creator_id, PersonId>, Eq<post_id, PostId>, Eq<content, String>, Option<Eq<parent_id, CommentId>>, Option<Eq<removed, bool>>, Option<Eq<read, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<creator_id, PersonId>, Eq<post_id, PostId>, Eq<content, String>, Option<Eq<parent_id, CommentId>>, Option<Eq<removed, bool>>, Option<Eq<read, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, bool>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
Returns the “default value” for a type. Read more
type Values = <(Option<Eq<creator_id, PersonId>>, Option<Eq<post_id, PostId>>, Option<Eq<content, String>>, Option<Eq<parent_id, CommentId>>, Option<Eq<removed, bool>>, Option<Eq<read, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<creator_id, PersonId>>, Option<Eq<post_id, PostId>>, Option<Eq<content, String>>, Option<Eq<parent_id, CommentId>>, Option<Eq<removed, bool>>, Option<Eq<read, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, bool>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
Insert self
into a given table. Read more
type Values = <(Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<post_id, &'insert PostId>>, Option<Eq<content, &'insert String>>, Option<Eq<parent_id, &'insert CommentId>>, Option<Eq<removed, &'insert bool>>, Option<Eq<read, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<ap_id, &'insert DbUrl>>, Option<Eq<local, &'insert bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<post_id, &'insert PostId>>, Option<Eq<content, &'insert String>>, Option<Eq<parent_id, &'insert CommentId>>, Option<Eq<removed, &'insert bool>>, Option<Eq<read, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<ap_id, &'insert DbUrl>>, Option<Eq<local, &'insert bool>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
Insert self
into a given table. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommentForm
impl Send for CommentForm
impl Sync for CommentForm
impl Unpin for CommentForm
impl UnwindSafe for CommentForm
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
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
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