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§enable_keyboard_navigation: 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 Clone for LocalUser

source§

fn clone(&self) -> LocalUser

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LocalUser

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LocalUser

source§

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

source§

fn eq(&self, other: &LocalUser) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for LocalUser

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for LocalUser

source§

impl StructuralPartialEq for LocalUser

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,