Struct lemmy_db_schema::source::post::PostForm [−][src]
pub struct PostForm {Show 18 fields
pub name: String,
pub creator_id: PersonId,
pub community_id: CommunityId,
pub nsfw: Option<bool>,
pub url: Option<DbUrl>,
pub body: Option<String>,
pub removed: Option<bool>,
pub locked: Option<bool>,
pub published: Option<NaiveDateTime>,
pub updated: Option<NaiveDateTime>,
pub deleted: Option<bool>,
pub stickied: Option<bool>,
pub embed_title: Option<String>,
pub embed_description: Option<String>,
pub embed_html: Option<String>,
pub thumbnail_url: Option<DbUrl>,
pub ap_id: Option<DbUrl>,
pub local: Option<bool>,
}
Fields
name: String
creator_id: PersonId
community_id: CommunityId
nsfw: Option<bool>
url: Option<DbUrl>
body: Option<String>
removed: Option<bool>
locked: Option<bool>
published: Option<NaiveDateTime>
updated: Option<NaiveDateTime>
deleted: Option<bool>
stickied: Option<bool>
embed_title: Option<String>
embed_description: Option<String>
embed_html: Option<String>
thumbnail_url: Option<DbUrl>
ap_id: Option<DbUrl>
local: Option<bool>
Trait Implementations
type Changeset = <(Eq<name, &'update String>, Eq<creator_id, &'update PersonId>, Eq<community_id, &'update CommunityId>, Option<Eq<nsfw, &'update bool>>, Option<Eq<url, &'update DbUrl>>, Option<Eq<body, &'update String>>, Option<Eq<removed, &'update bool>>, Option<Eq<locked, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<deleted, &'update bool>>, Option<Eq<stickied, &'update bool>>, Option<Eq<embed_title, &'update String>>, Option<Eq<embed_description, &'update String>>, Option<Eq<embed_html, &'update String>>, Option<Eq<thumbnail_url, &'update DbUrl>>, Option<Eq<ap_id, &'update DbUrl>>, Option<Eq<local, &'update bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, &'update String>, Eq<creator_id, &'update PersonId>, Eq<community_id, &'update CommunityId>, Option<Eq<nsfw, &'update bool>>, Option<Eq<url, &'update DbUrl>>, Option<Eq<body, &'update String>>, Option<Eq<removed, &'update bool>>, Option<Eq<locked, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<deleted, &'update bool>>, Option<Eq<stickied, &'update bool>>, Option<Eq<embed_title, &'update String>>, Option<Eq<embed_description, &'update String>>, Option<Eq<embed_html, &'update String>>, Option<Eq<thumbnail_url, &'update DbUrl>>, 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<name, String>, Eq<creator_id, PersonId>, Eq<community_id, CommunityId>, Option<Eq<nsfw, bool>>, Option<Eq<url, DbUrl>>, Option<Eq<body, String>>, Option<Eq<removed, bool>>, Option<Eq<locked, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<stickied, bool>>, Option<Eq<embed_title, String>>, Option<Eq<embed_description, String>>, Option<Eq<embed_html, String>>, Option<Eq<thumbnail_url, DbUrl>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, String>, Eq<creator_id, PersonId>, Eq<community_id, CommunityId>, Option<Eq<nsfw, bool>>, Option<Eq<url, DbUrl>>, Option<Eq<body, String>>, Option<Eq<removed, bool>>, Option<Eq<locked, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<stickied, bool>>, Option<Eq<embed_title, String>>, Option<Eq<embed_description, String>>, Option<Eq<embed_html, String>>, Option<Eq<thumbnail_url, DbUrl>>, 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
type Values = <(Option<Eq<name, String>>, Option<Eq<creator_id, PersonId>>, Option<Eq<community_id, CommunityId>>, Option<Eq<nsfw, bool>>, Option<Eq<url, DbUrl>>, Option<Eq<body, String>>, Option<Eq<removed, bool>>, Option<Eq<locked, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<stickied, bool>>, Option<Eq<embed_title, String>>, Option<Eq<embed_description, String>>, Option<Eq<embed_html, String>>, Option<Eq<thumbnail_url, DbUrl>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, String>>, Option<Eq<creator_id, PersonId>>, Option<Eq<community_id, CommunityId>>, Option<Eq<nsfw, bool>>, Option<Eq<url, DbUrl>>, Option<Eq<body, String>>, Option<Eq<removed, bool>>, Option<Eq<locked, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<stickied, bool>>, Option<Eq<embed_title, String>>, Option<Eq<embed_description, String>>, Option<Eq<embed_html, String>>, Option<Eq<thumbnail_url, DbUrl>>, 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<name, &'insert String>>, Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<community_id, &'insert CommunityId>>, Option<Eq<nsfw, &'insert bool>>, Option<Eq<url, &'insert DbUrl>>, Option<Eq<body, &'insert String>>, Option<Eq<removed, &'insert bool>>, Option<Eq<locked, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<stickied, &'insert bool>>, Option<Eq<embed_title, &'insert String>>, Option<Eq<embed_description, &'insert String>>, Option<Eq<embed_html, &'insert String>>, Option<Eq<thumbnail_url, &'insert DbUrl>>, Option<Eq<ap_id, &'insert DbUrl>>, Option<Eq<local, &'insert bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, &'insert String>>, Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<community_id, &'insert CommunityId>>, Option<Eq<nsfw, &'insert bool>>, Option<Eq<url, &'insert DbUrl>>, Option<Eq<body, &'insert String>>, Option<Eq<removed, &'insert bool>>, Option<Eq<locked, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<stickied, &'insert bool>>, Option<Eq<embed_title, &'insert String>>, Option<Eq<embed_description, &'insert String>>, Option<Eq<embed_html, &'insert String>>, Option<Eq<thumbnail_url, &'insert DbUrl>>, 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 PostForm
impl UnwindSafe for PostForm
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