pub struct UserSettings {Show 13 fields
pub group_expires: Option<String>,
pub open_id: Option<Vec<OpenID>>,
pub version_retention_enabled: bool,
pub version_retention_ext: Option<Vec<String>>,
pub version_retention_max: Option<i32>,
pub passwordless: bool,
pub two_fa_enabled: bool,
pub passkeys: Option<Vec<Passkey>>,
pub login_activity: Option<Vec<LoginActivity>>,
pub storage_packs: Option<Vec<StoragePack>>,
pub credit: i32,
pub disable_view_sync: bool,
pub share_links_in_profile: ShareLinksInProfileLevel,
}Expand description
User settings
Fields§
§group_expires: Option<String>§open_id: Option<Vec<OpenID>>§version_retention_enabled: bool§version_retention_ext: Option<Vec<String>>§version_retention_max: Option<i32>§passwordless: bool§two_fa_enabled: bool§passkeys: Option<Vec<Passkey>>§login_activity: Option<Vec<LoginActivity>>§storage_packs: Option<Vec<StoragePack>>§credit: i32§disable_view_sync: boolTrait Implementations§
Source§impl Clone for UserSettings
impl Clone for UserSettings
Source§fn clone(&self) -> UserSettings
fn clone(&self) -> UserSettings
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 UserSettings
impl Debug for UserSettings
Source§impl Default for UserSettings
impl Default for UserSettings
Source§fn default() -> UserSettings
fn default() -> UserSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserSettings
impl<'de> Deserialize<'de> for UserSettings
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 UserSettings
impl RefUnwindSafe for UserSettings
impl Send for UserSettings
impl Sync for UserSettings
impl Unpin for UserSettings
impl UnsafeUnpin for UserSettings
impl UnwindSafe for UserSettings
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