Struct lemmy_db_schema::source::site::SiteForm [−][src]
pub struct SiteForm {
pub name: String,
pub creator_id: PersonId,
pub sidebar: Option<Option<String>>,
pub updated: Option<NaiveDateTime>,
pub enable_downvotes: Option<bool>,
pub open_registration: Option<bool>,
pub enable_nsfw: Option<bool>,
pub icon: Option<Option<DbUrl>>,
pub banner: Option<Option<DbUrl>>,
pub description: Option<Option<String>>,
pub community_creation_admin_only: Option<bool>,
}
Fields
name: String
creator_id: PersonId
updated: Option<NaiveDateTime>
enable_downvotes: Option<bool>
open_registration: Option<bool>
enable_nsfw: Option<bool>
icon: Option<Option<DbUrl>>
description: Option<Option<String>>
community_creation_admin_only: Option<bool>
Trait Implementations
type Changeset = <(Eq<name, &'update String>, Eq<creator_id, &'update PersonId>, Option<Eq<sidebar, &'update Option<String>>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<enable_downvotes, &'update bool>>, Option<Eq<open_registration, &'update bool>>, Option<Eq<enable_nsfw, &'update bool>>, Option<Eq<icon, &'update Option<DbUrl>>>, Option<Eq<banner, &'update Option<DbUrl>>>, Option<Eq<description, &'update Option<String>>>, Option<Eq<community_creation_admin_only, &'update bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, &'update String>, Eq<creator_id, &'update PersonId>, Option<Eq<sidebar, &'update Option<String>>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<enable_downvotes, &'update bool>>, Option<Eq<open_registration, &'update bool>>, Option<Eq<enable_nsfw, &'update bool>>, Option<Eq<icon, &'update Option<DbUrl>>>, Option<Eq<banner, &'update Option<DbUrl>>>, Option<Eq<description, &'update Option<String>>>, Option<Eq<community_creation_admin_only, &'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>, Option<Eq<sidebar, Option<String>>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<enable_downvotes, bool>>, Option<Eq<open_registration, bool>>, Option<Eq<enable_nsfw, bool>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<description, Option<String>>>, Option<Eq<community_creation_admin_only, bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, String>, Eq<creator_id, PersonId>, Option<Eq<sidebar, Option<String>>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<enable_downvotes, bool>>, Option<Eq<open_registration, bool>>, Option<Eq<enable_nsfw, bool>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<description, Option<String>>>, Option<Eq<community_creation_admin_only, 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<sidebar, Option<String>>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<enable_downvotes, bool>>, Option<Eq<open_registration, bool>>, Option<Eq<enable_nsfw, bool>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<description, Option<String>>>, Option<Eq<community_creation_admin_only, bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, String>>, Option<Eq<creator_id, PersonId>>, Option<Eq<sidebar, Option<String>>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<enable_downvotes, bool>>, Option<Eq<open_registration, bool>>, Option<Eq<enable_nsfw, bool>>, Option<Eq<icon, Option<DbUrl>>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<description, Option<String>>>, Option<Eq<community_creation_admin_only, 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<sidebar, &'insert Option<String>>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<enable_downvotes, &'insert bool>>, Option<Eq<open_registration, &'insert bool>>, Option<Eq<enable_nsfw, &'insert bool>>, Option<Eq<icon, &'insert Option<DbUrl>>>, Option<Eq<banner, &'insert Option<DbUrl>>>, Option<Eq<description, &'insert Option<String>>>, Option<Eq<community_creation_admin_only, &'insert bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, &'insert String>>, Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<sidebar, &'insert Option<String>>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<enable_downvotes, &'insert bool>>, Option<Eq<open_registration, &'insert bool>>, Option<Eq<enable_nsfw, &'insert bool>>, Option<Eq<icon, &'insert Option<DbUrl>>>, Option<Eq<banner, &'insert Option<DbUrl>>>, Option<Eq<description, &'insert Option<String>>>, Option<Eq<community_creation_admin_only, &'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 SiteForm
impl UnwindSafe for SiteForm
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