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_keyboard_navigation: Option<bool>§enable_animated_images: Option<bool>§collapse_bot_comments: Option<bool>

Implementations§

source§

impl LocalUserInsertForm

source

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

source§

fn clone(&self) -> LocalUserInsertForm

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

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.