+ /// Whether this account is a bot account. Users can hide these accounts easily if they wish.
+ pub bot_account: Option<bool>,
+ /// Whether to show bot accounts.
+ pub show_bot_accounts: Option<bool>,
+ /// Whether to show read posts.
+ pub show_read_posts: Option<bool>,
+ /// Whether to show notifications for new posts.
+ // TODO notifs need to be reworked.
+ pub show_new_post_notifs: Option<bool>,
+ /// A list of languages you are able to see discussion in.
+ pub discussion_languages: Option<Vec<LanguageId>>,
+ /// Generates a TOTP / 2-factor authentication token.
+ ///
+ /// None leaves it as is, true will generate or regenerate it, false clears it out.
+ pub generate_totp_2fa: Option<bool>,
+ pub auth: Sensitive<String>,
+ /// Open links in a new tab
+ pub open_links_in_new_tab: Option<bool>,
+ /// Enable infinite scroll
+ pub infinite_scroll_enabled: Option<bool>,
+}
+
+#[derive(Debug, Serialize, Deserialize, Clone, Default)]
+#[cfg_attr(feature = "full", derive(TS))]
+#[cfg_attr(feature = "full", ts(export))]
+/// Changes your account password.
+pub struct ChangePassword {
+ pub new_password: Sensitive<String>,
+ pub new_password_verify: Sensitive<String>,
+ pub old_password: Sensitive<String>,
+ pub auth: Sensitive<String>,