Struct lemmy_db_schema::source::local_user::LocalUserForm [−][src]
pub struct LocalUserForm {Show 14 fields
pub person_id: PersonId,
pub password_encrypted: String,
pub email: Option<Option<String>>,
pub show_nsfw: Option<bool>,
pub theme: Option<String>,
pub default_sort_type: Option<i16>,
pub default_listing_type: Option<i16>,
pub lang: Option<String>,
pub show_avatars: Option<bool>,
pub send_notifications_to_email: Option<bool>,
pub show_bot_accounts: Option<bool>,
pub show_scores: Option<bool>,
pub show_read_posts: Option<bool>,
pub show_new_post_notifs: Option<bool>,
}
Fields
person_id: PersonId
password_encrypted: String
email: Option<Option<String>>
show_nsfw: Option<bool>
theme: Option<String>
default_sort_type: Option<i16>
default_listing_type: Option<i16>
lang: Option<String>
show_avatars: Option<bool>
send_notifications_to_email: Option<bool>
show_bot_accounts: Option<bool>
show_scores: Option<bool>
show_read_posts: Option<bool>
show_new_post_notifs: Option<bool>
Trait Implementations
type Changeset = <(Eq<person_id, &'update PersonId>, Eq<password_encrypted, &'update String>, Option<Eq<email, &'update Option<String>>>, Option<Eq<show_nsfw, &'update bool>>, Option<Eq<theme, &'update String>>, Option<Eq<default_sort_type, &'update i16>>, Option<Eq<default_listing_type, &'update i16>>, Option<Eq<lang, &'update String>>, Option<Eq<show_avatars, &'update bool>>, Option<Eq<send_notifications_to_email, &'update bool>>, Option<Eq<show_bot_accounts, &'update bool>>, Option<Eq<show_scores, &'update bool>>, Option<Eq<show_read_posts, &'update bool>>, Option<Eq<show_new_post_notifs, &'update bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<person_id, &'update PersonId>, Eq<password_encrypted, &'update String>, Option<Eq<email, &'update Option<String>>>, Option<Eq<show_nsfw, &'update bool>>, Option<Eq<theme, &'update String>>, Option<Eq<default_sort_type, &'update i16>>, Option<Eq<default_listing_type, &'update i16>>, Option<Eq<lang, &'update String>>, Option<Eq<show_avatars, &'update bool>>, Option<Eq<send_notifications_to_email, &'update bool>>, Option<Eq<show_bot_accounts, &'update bool>>, Option<Eq<show_scores, &'update bool>>, Option<Eq<show_read_posts, &'update bool>>, Option<Eq<show_new_post_notifs, &'update bool>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
type Changeset = <(Eq<person_id, PersonId>, Eq<password_encrypted, String>, Option<Eq<email, Option<String>>>, Option<Eq<show_nsfw, bool>>, Option<Eq<theme, String>>, Option<Eq<default_sort_type, i16>>, Option<Eq<default_listing_type, i16>>, Option<Eq<lang, String>>, Option<Eq<show_avatars, bool>>, Option<Eq<send_notifications_to_email, bool>>, Option<Eq<show_bot_accounts, bool>>, Option<Eq<show_scores, bool>>, Option<Eq<show_read_posts, bool>>, Option<Eq<show_new_post_notifs, bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<person_id, PersonId>, Eq<password_encrypted, String>, Option<Eq<email, Option<String>>>, Option<Eq<show_nsfw, bool>>, Option<Eq<theme, String>>, Option<Eq<default_sort_type, i16>>, Option<Eq<default_listing_type, i16>>, Option<Eq<lang, String>>, Option<Eq<show_avatars, bool>>, Option<Eq<send_notifications_to_email, bool>>, Option<Eq<show_bot_accounts, bool>>, Option<Eq<show_scores, bool>>, Option<Eq<show_read_posts, bool>>, Option<Eq<show_new_post_notifs, 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<person_id, PersonId>>, Option<Eq<password_encrypted, String>>, Option<Eq<email, Option<String>>>, Option<Eq<show_nsfw, bool>>, Option<Eq<theme, String>>, Option<Eq<default_sort_type, i16>>, Option<Eq<default_listing_type, i16>>, Option<Eq<lang, String>>, Option<Eq<show_avatars, bool>>, Option<Eq<send_notifications_to_email, bool>>, Option<Eq<show_bot_accounts, bool>>, Option<Eq<show_scores, bool>>, Option<Eq<show_read_posts, bool>>, Option<Eq<show_new_post_notifs, bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<person_id, PersonId>>, Option<Eq<password_encrypted, String>>, Option<Eq<email, Option<String>>>, Option<Eq<show_nsfw, bool>>, Option<Eq<theme, String>>, Option<Eq<default_sort_type, i16>>, Option<Eq<default_listing_type, i16>>, Option<Eq<lang, String>>, Option<Eq<show_avatars, bool>>, Option<Eq<send_notifications_to_email, bool>>, Option<Eq<show_bot_accounts, bool>>, Option<Eq<show_scores, bool>>, Option<Eq<show_read_posts, bool>>, Option<Eq<show_new_post_notifs, 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<person_id, &'insert PersonId>>, Option<Eq<password_encrypted, &'insert String>>, Option<Eq<email, &'insert Option<String>>>, Option<Eq<show_nsfw, &'insert bool>>, Option<Eq<theme, &'insert String>>, Option<Eq<default_sort_type, &'insert i16>>, Option<Eq<default_listing_type, &'insert i16>>, Option<Eq<lang, &'insert String>>, Option<Eq<show_avatars, &'insert bool>>, Option<Eq<send_notifications_to_email, &'insert bool>>, Option<Eq<show_bot_accounts, &'insert bool>>, Option<Eq<show_scores, &'insert bool>>, Option<Eq<show_read_posts, &'insert bool>>, Option<Eq<show_new_post_notifs, &'insert bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<person_id, &'insert PersonId>>, Option<Eq<password_encrypted, &'insert String>>, Option<Eq<email, &'insert Option<String>>>, Option<Eq<show_nsfw, &'insert bool>>, Option<Eq<theme, &'insert String>>, Option<Eq<default_sort_type, &'insert i16>>, Option<Eq<default_listing_type, &'insert i16>>, Option<Eq<lang, &'insert String>>, Option<Eq<show_avatars, &'insert bool>>, Option<Eq<send_notifications_to_email, &'insert bool>>, Option<Eq<show_bot_accounts, &'insert bool>>, Option<Eq<show_scores, &'insert bool>>, Option<Eq<show_read_posts, &'insert bool>>, Option<Eq<show_new_post_notifs, &'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 LocalUserForm
impl Send for LocalUserForm
impl Sync for LocalUserForm
impl Unpin for LocalUserForm
impl UnwindSafe for LocalUserForm
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