Struct lemmy_db_schema::source::local_user::LocalUserInsertForm
source · pub struct LocalUserInsertForm {Show 26 fields
pub person_id: PersonId,
pub password_encrypted: String,
pub email: Option<String>,
pub show_nsfw: Option<bool>,
pub theme: Option<String>,
pub default_sort_type: Option<SortType>,
pub default_listing_type: Option<ListingType>,
pub interface_language: 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 email_verified: Option<bool>,
pub accepted_application: Option<bool>,
pub totp_2fa_secret: Option<Option<String>>,
pub open_links_in_new_tab: Option<bool>,
pub blur_nsfw: Option<bool>,
pub auto_expand: Option<bool>,
pub infinite_scroll_enabled: Option<bool>,
pub admin: Option<bool>,
pub post_listing_mode: Option<PostListingMode>,
pub totp_2fa_enabled: Option<bool>,
pub enable_keyboard_navigation: Option<bool>,
pub enable_animated_images: Option<bool>,
pub collapse_bot_comments: Option<bool>,
}
Fields§
§person_id: PersonId
§password_encrypted: String
§email: Option<String>
§show_nsfw: Option<bool>
§theme: Option<String>
§default_sort_type: Option<SortType>
§default_listing_type: Option<ListingType>
§interface_language: 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>
§email_verified: Option<bool>
§accepted_application: Option<bool>
§totp_2fa_secret: Option<Option<String>>
§open_links_in_new_tab: Option<bool>
§blur_nsfw: Option<bool>
§auto_expand: Option<bool>
§infinite_scroll_enabled: Option<bool>
§admin: Option<bool>
§post_listing_mode: Option<PostListingMode>
§totp_2fa_enabled: Option<bool>
§enable_animated_images: Option<bool>
§collapse_bot_comments: Option<bool>
Implementations§
source§impl LocalUserInsertForm
impl LocalUserInsertForm
sourcepub fn builder() -> LocalUserInsertFormBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> LocalUserInsertFormBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building LocalUserInsertForm
.
On the builder, call .person_id(...)
, .password_encrypted(...)
, .email(...)
(optional), .show_nsfw(...)
(optional), .theme(...)
(optional), .default_sort_type(...)
(optional), .default_listing_type(...)
(optional), .interface_language(...)
(optional), .show_avatars(...)
(optional), .send_notifications_to_email(...)
(optional), .show_bot_accounts(...)
(optional), .show_scores(...)
(optional), .show_read_posts(...)
(optional), .email_verified(...)
(optional), .accepted_application(...)
(optional), .totp_2fa_secret(...)
(optional), .open_links_in_new_tab(...)
(optional), .blur_nsfw(...)
(optional), .auto_expand(...)
(optional), .infinite_scroll_enabled(...)
(optional), .admin(...)
(optional), .post_listing_mode(...)
(optional), .totp_2fa_enabled(...)
(optional), .enable_keyboard_navigation(...)
(optional), .enable_animated_images(...)
(optional), .collapse_bot_comments(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of LocalUserInsertForm
.
Trait Implementations§
source§impl Clone for LocalUserInsertForm
impl Clone for LocalUserInsertForm
source§fn clone(&self) -> LocalUserInsertForm
fn clone(&self) -> LocalUserInsertForm
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more