Struct lemmy_db_schema::source::local_user::LocalUserSettings [−][src]
pub struct LocalUserSettings {Show 15 fields
pub id: LocalUserId,
pub person_id: PersonId,
pub email: Option<String>,
pub show_nsfw: bool,
pub theme: String,
pub default_sort_type: i16,
pub default_listing_type: i16,
pub lang: String,
pub show_avatars: bool,
pub send_notifications_to_email: bool,
pub validator_time: NaiveDateTime,
pub show_bot_accounts: bool,
pub show_scores: bool,
pub show_read_posts: bool,
pub show_new_post_notifs: bool,
}
Expand description
A local user view that removes password encrypted
Fields
id: LocalUserId
person_id: PersonId
email: Option<String>
show_nsfw: bool
theme: String
default_sort_type: i16
default_listing_type: i16
lang: String
show_avatars: bool
send_notifications_to_email: bool
validator_time: NaiveDateTime
show_bot_accounts: bool
show_scores: bool
show_read_posts: bool
show_new_post_notifs: bool
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LocalUserSettings
impl Send for LocalUserSettings
impl Sync for LocalUserSettings
impl Unpin for LocalUserSettings
impl UnwindSafe for LocalUserSettings
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