Struct lemmy_db_schema::source::local_user::LocalUser[][src]

pub struct LocalUser {
Show 16 fields pub id: LocalUserId, pub person_id: PersonId, pub password_encrypted: String, 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,
}

Fields

id: LocalUserIdperson_id: PersonIdpassword_encrypted: Stringemail: Option<String>show_nsfw: booltheme: Stringdefault_sort_type: i16default_listing_type: i16lang: Stringshow_avatars: boolsend_notifications_to_email: boolvalidator_time: NaiveDateTimeshow_bot_accounts: boolshow_scores: boolshow_read_posts: boolshow_new_post_notifs: bool

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The table this type is associated with.

Returns the table this type is associated with.

The type of this struct’s identifier. Read more

Returns the identifier for this record. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The Rust type you’d like to map from. Read more

Construct an instance of this type

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.