pub struct PatchUserSetting {Show 13 fields
pub nick: Option<String>,
pub group_expires: Option<bool>,
pub language: Option<String>,
pub preferred_theme: Option<String>,
pub version_retention_enabled: Option<bool>,
pub version_retention_ext: Option<Vec<String>>,
pub version_retention_max: Option<i32>,
pub current_password: Option<String>,
pub new_password: Option<String>,
pub two_fa_enabled: Option<bool>,
pub two_fa_code: Option<String>,
pub disable_view_sync: Option<bool>,
pub share_links_in_profile: Option<ShareLinksInProfileLevel>,
}Expand description
Patch user settings request
Fields§
§nick: Option<String>§group_expires: Option<bool>§language: Option<String>§preferred_theme: Option<String>§version_retention_enabled: Option<bool>§version_retention_ext: Option<Vec<String>>§version_retention_max: Option<i32>§current_password: Option<String>§new_password: Option<String>§two_fa_enabled: Option<bool>§two_fa_code: Option<String>§disable_view_sync: Option<bool>Trait Implementations§
Source§impl Clone for PatchUserSetting
impl Clone for PatchUserSetting
Source§fn clone(&self) -> PatchUserSetting
fn clone(&self) -> PatchUserSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatchUserSetting
impl Debug for PatchUserSetting
Source§impl Default for PatchUserSetting
impl Default for PatchUserSetting
Source§fn default() -> PatchUserSetting
fn default() -> PatchUserSetting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchUserSetting
impl<'de> Deserialize<'de> for PatchUserSetting
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PatchUserSetting
impl RefUnwindSafe for PatchUserSetting
impl Send for PatchUserSetting
impl Sync for PatchUserSetting
impl Unpin for PatchUserSetting
impl UnsafeUnpin for PatchUserSetting
impl UnwindSafe for PatchUserSetting
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more