Struct lemmy_db_schema::source::local_user::LocalUser
source · pub struct LocalUser {Show 27 fields
pub id: LocalUserId,
pub person_id: PersonId,
pub password_encrypted: SensitiveString,
pub email: Option<SensitiveString>,
pub show_nsfw: bool,
pub theme: String,
pub default_sort_type: SortType,
pub default_listing_type: ListingType,
pub interface_language: String,
pub show_avatars: bool,
pub send_notifications_to_email: bool,
pub show_scores: bool,
pub show_bot_accounts: bool,
pub show_read_posts: bool,
pub email_verified: bool,
pub accepted_application: bool,
pub totp_2fa_secret: Option<SensitiveString>,
pub open_links_in_new_tab: bool,
pub blur_nsfw: bool,
pub auto_expand: bool,
pub infinite_scroll_enabled: bool,
pub admin: bool,
pub post_listing_mode: PostListingMode,
pub totp_2fa_enabled: bool,
pub enable_keyboard_navigation: bool,
pub enable_animated_images: bool,
pub collapse_bot_comments: bool,
}
Expand description
A local user.
Fields§
§id: LocalUserId
§person_id: PersonId
The person_id for the local user.
password_encrypted: SensitiveString
§email: Option<SensitiveString>
§show_nsfw: bool
Whether to show NSFW content.
theme: String
§default_sort_type: SortType
§default_listing_type: ListingType
§interface_language: String
§show_avatars: bool
Whether to show avatars.
send_notifications_to_email: bool
§show_scores: bool
Whether to show comment / post scores.
show_bot_accounts: bool
Whether to show bot accounts.
show_read_posts: bool
Whether to show read posts.
email_verified: bool
Whether their email has been verified.
accepted_application: bool
Whether their registration application has been accepted.
totp_2fa_secret: Option<SensitiveString>
§open_links_in_new_tab: bool
Open links in a new tab.
blur_nsfw: bool
§auto_expand: bool
§infinite_scroll_enabled: bool
Whether infinite scroll is enabled.
admin: bool
Whether the person is an admin.
post_listing_mode: PostListingMode
A post-view mode that changes how multiple post listings look.
totp_2fa_enabled: bool
Whether to allow keyboard navigation (for browsing and interacting with posts and comments).
enable_animated_images: bool
Whether user avatars and inline images in the UI that are gifs should be allowed to play or should be paused
collapse_bot_comments: bool
Whether to auto-collapse bot comments.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LocalUser
impl<'de> Deserialize<'de> for LocalUser
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for LocalUser
impl PartialEq for LocalUser
impl Eq for LocalUser
impl StructuralPartialEq for LocalUser
Auto Trait Implementations§
impl Freeze for LocalUser
impl RefUnwindSafe for LocalUser
impl Send for LocalUser
impl Sync for LocalUser
impl Unpin for LocalUser
impl UnwindSafe for LocalUser
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more