Struct lemmy_db_schema::source::post_report::PostReportForm [−][src]
pub struct PostReportForm {
pub creator_id: PersonId,
pub post_id: PostId,
pub original_post_name: String,
pub original_post_url: Option<DbUrl>,
pub original_post_body: Option<String>,
pub reason: String,
}
Fields
creator_id: PersonId
post_id: PostId
original_post_name: String
original_post_url: Option<DbUrl>
original_post_body: Option<String>
reason: String
Trait Implementations
type Changeset = <(Eq<creator_id, &'update PersonId>, Eq<post_id, &'update PostId>, Eq<original_post_name, &'update String>, Option<Eq<original_post_url, &'update DbUrl>>, Option<Eq<original_post_body, &'update String>>, Eq<reason, &'update String>) as AsChangeset>::Changeset
type Changeset = <(Eq<creator_id, &'update PersonId>, Eq<post_id, &'update PostId>, Eq<original_post_name, &'update String>, Option<Eq<original_post_url, &'update DbUrl>>, Option<Eq<original_post_body, &'update String>>, Eq<reason, &'update String>) 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<original_post_name, String>, Option<Eq<original_post_url, DbUrl>>, Option<Eq<original_post_body, String>>, Eq<reason, String>) as AsChangeset>::Changeset
type Changeset = <(Eq<creator_id, PersonId>, Eq<post_id, PostId>, Eq<original_post_name, String>, Option<Eq<original_post_url, DbUrl>>, Option<Eq<original_post_body, String>>, Eq<reason, String>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
type Values = <(Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<post_id, &'insert PostId>>, Option<Eq<original_post_name, &'insert String>>, Option<Eq<original_post_url, &'insert DbUrl>>, Option<Eq<original_post_body, &'insert String>>, Option<Eq<reason, &'insert String>>) as Insertable<table>>::Values
type Values = <(Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<post_id, &'insert PostId>>, Option<Eq<original_post_name, &'insert String>>, Option<Eq<original_post_url, &'insert DbUrl>>, Option<Eq<original_post_body, &'insert String>>, Option<Eq<reason, &'insert String>>) 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 PostReportForm
impl Send for PostReportForm
impl Sync for PostReportForm
impl Unpin for PostReportForm
impl UnwindSafe for PostReportForm
Blanket Implementations
Mutably borrows from an owned value. 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