Struct lemmy_db_schema::source::community::CommunityForm [−][src]
pub struct CommunityForm {Show 18 fields
pub name: String,
pub title: String,
pub description: Option<String>,
pub removed: Option<bool>,
pub published: Option<NaiveDateTime>,
pub updated: Option<NaiveDateTime>,
pub deleted: Option<bool>,
pub nsfw: Option<bool>,
pub actor_id: Option<DbUrl>,
pub local: Option<bool>,
pub private_key: Option<String>,
pub public_key: Option<String>,
pub last_refreshed_at: Option<NaiveDateTime>,
pub icon: Option<Option<DbUrl>>,
pub banner: Option<Option<DbUrl>>,
pub followers_url: Option<DbUrl>,
pub inbox_url: Option<DbUrl>,
pub shared_inbox_url: Option<Option<DbUrl>>,
}
Fields
name: String
title: String
description: Option<String>
removed: Option<bool>
published: Option<NaiveDateTime>
updated: Option<NaiveDateTime>
deleted: Option<bool>
nsfw: Option<bool>
actor_id: Option<DbUrl>
local: Option<bool>
private_key: Option<String>
public_key: Option<String>
last_refreshed_at: Option<NaiveDateTime>
icon: Option<Option<DbUrl>>
followers_url: Option<DbUrl>
inbox_url: Option<DbUrl>
Trait Implementations
type Changeset = <(Eq<name, &'update String>, Eq<title, &'update String>, Option<Eq<description, &'update String>>, Option<Eq<removed, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<deleted, &'update bool>>, Option<Eq<nsfw, &'update bool>>, Option<Eq<actor_id, &'update DbUrl>>, Option<Eq<local, &'update bool>>, Option<Eq<private_key, &'update String>>, Option<Eq<public_key, &'update String>>, Option<Eq<last_refreshed_at, &'update NaiveDateTime>>, Option<Eq<icon, &'update Option<DbUrl>>>, Option<Eq<banner, &'update Option<DbUrl>>>, Option<Eq<followers_url, &'update DbUrl>>, Option<Eq<inbox_url, &'update DbUrl>>, Option<Eq<shared_inbox_url, &'update Option<DbUrl>>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, &'update String>, Eq<title, &'update String>, Option<Eq<description, &'update String>>, Option<Eq<removed, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<deleted, &'update bool>>, Option<Eq<nsfw, &'update bool>>, Option<Eq<actor_id, &'update DbUrl>>, Option<Eq<local, &'update bool>>, Option<Eq<private_key, &'update String>>, Option<Eq<public_key, &'update String>>, Option<Eq<last_refreshed_at, &'update NaiveDateTime>>, Option<Eq<icon, &'update Option<DbUrl>>>, Option<Eq<banner, &'update Option<DbUrl>>>, Option<Eq<followers_url, &'update DbUrl>>, Option<Eq<inbox_url, &'update DbUrl>>, Option<Eq<shared_inbox_url, &'update Option<DbUrl>>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
type Changeset = <(Eq<name, String>, Eq<title, String>, Option<Eq<description, String>>, Option<Eq<removed, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<nsfw, bool>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<local, bool>>, Option<Eq<private_key, String>>, Option<Eq<public_key, String>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<followers_url, DbUrl>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, String>, Eq<title, String>, Option<Eq<description, String>>, Option<Eq<removed, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<nsfw, bool>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<local, bool>>, Option<Eq<private_key, String>>, Option<Eq<public_key, String>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<followers_url, DbUrl>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>) 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<name, String>>, Option<Eq<title, String>>, Option<Eq<description, String>>, Option<Eq<removed, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<nsfw, bool>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<local, bool>>, Option<Eq<private_key, String>>, Option<Eq<public_key, String>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<followers_url, DbUrl>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, String>>, Option<Eq<title, String>>, Option<Eq<description, String>>, Option<Eq<removed, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<deleted, bool>>, Option<Eq<nsfw, bool>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<local, bool>>, Option<Eq<private_key, String>>, Option<Eq<public_key, String>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<followers_url, DbUrl>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>) 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<title, &'insert String>>, Option<Eq<description, &'insert String>>, Option<Eq<removed, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<nsfw, &'insert bool>>, Option<Eq<actor_id, &'insert DbUrl>>, Option<Eq<local, &'insert bool>>, Option<Eq<private_key, &'insert String>>, Option<Eq<public_key, &'insert String>>, Option<Eq<last_refreshed_at, &'insert NaiveDateTime>>, Option<Eq<icon, &'insert Option<DbUrl>>>, Option<Eq<banner, &'insert Option<DbUrl>>>, Option<Eq<followers_url, &'insert DbUrl>>, Option<Eq<inbox_url, &'insert DbUrl>>, Option<Eq<shared_inbox_url, &'insert Option<DbUrl>>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, &'insert String>>, Option<Eq<title, &'insert String>>, Option<Eq<description, &'insert String>>, Option<Eq<removed, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<nsfw, &'insert bool>>, Option<Eq<actor_id, &'insert DbUrl>>, Option<Eq<local, &'insert bool>>, Option<Eq<private_key, &'insert String>>, Option<Eq<public_key, &'insert String>>, Option<Eq<last_refreshed_at, &'insert NaiveDateTime>>, Option<Eq<icon, &'insert Option<DbUrl>>>, Option<Eq<banner, &'insert Option<DbUrl>>>, Option<Eq<followers_url, &'insert DbUrl>>, Option<Eq<inbox_url, &'insert DbUrl>>, Option<Eq<shared_inbox_url, &'insert Option<DbUrl>>>) 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 CommunityForm
impl Send for CommunityForm
impl Sync for CommunityForm
impl Unpin for CommunityForm
impl UnwindSafe for CommunityForm
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