pub struct UserSetting {
pub uid: i64,
pub homepage: bool,
pub two_factor: bool,
pub prefer_theme: String,
pub themes: String,
pub authn: Vec<WebAuthnCredential>,
}Expand description
/user/setting 的返回:用户偏好,没有容量字段。
别和 /user/storage 的 StorageInfo 混了——早先 get_user_settings() 就是
拿 StorageInfo 去解 /user/setting,每次调用都稳定报 missing field used。
Fields§
§uid: i64§homepage: bool§two_factor: bool§prefer_theme: String§themes: String§authn: Vec<WebAuthnCredential>Trait Implementations§
Source§impl Debug for UserSetting
impl Debug for UserSetting
Source§impl Default for UserSetting
impl Default for UserSetting
Source§fn default() -> UserSetting
fn default() -> UserSetting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserSettingwhere
UserSetting: Default,
impl<'de> Deserialize<'de> for UserSettingwhere
UserSetting: 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 UserSetting
impl RefUnwindSafe for UserSetting
impl Send for UserSetting
impl Sync for UserSetting
impl Unpin for UserSetting
impl UnsafeUnpin for UserSetting
impl UnwindSafe for UserSetting
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