pub struct UserSettings {Show 13 fields
pub group_expires: Option<String>,
pub open_id: Option<Vec<OpenIDInfo>>,
pub version_retention_enabled: bool,
pub version_retention_ext: Option<Vec<String>>,
pub version_retention_max: Option<i64>,
pub passwordless: bool,
pub two_fa_enabled: bool,
pub passkeys: Option<Vec<Passkey>>,
pub login_activity: Option<Vec<LoginActivity>>,
pub storage_packs: Vec<StoragePack>,
pub credit: i64,
pub disable_view_sync: bool,
pub share_links_in_profile: Option<String>,
}Expand description
User settings (preferences)
Fields§
§group_expires: Option<String>Group expiration date
open_id: Option<Vec<OpenIDInfo>>Linked OpenID providers
version_retention_enabled: boolWhether file version retention is enabled
version_retention_ext: Option<Vec<String>>File extensions with version retention enabled
version_retention_max: Option<i64>Max preserved versions (0 = all)
passwordless: boolWhether account is passwordless
two_fa_enabled: boolWhether 2FA is enabled
passkeys: Option<Vec<Passkey>>Registered passkeys
login_activity: Option<Vec<LoginActivity>>Recent login activities
storage_packs: Vec<StoragePack>Storage packs
credit: i64Available credit/points
disable_view_sync: boolWhether view sync is disabled
Share link visibility in profile
Trait Implementations§
Source§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 UserSettingswhere
UserSettings: Default,
impl<'de> Deserialize<'de> for UserSettingswhere
UserSettings: Default,
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 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