pub struct LocalUserUpdateForm {
Show 25 fields pub password_encrypted: Option<String>, pub email: Option<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§

§password_encrypted: Option<String>§email: Option<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>

Trait Implementations§

source§

impl Clone for LocalUserUpdateForm

source§

fn clone(&self) -> LocalUserUpdateForm

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 Default for LocalUserUpdateForm

source§

fn default() -> LocalUserUpdateForm

Returns the “default value” for a type. 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.