pub struct UserSettings {
pub description: Option<String>,
pub diff_view_style: Option<String>,
pub full_name: Option<String>,
pub hide_activity: Option<bool>,
pub hide_email: Option<bool>,
pub language: Option<String>,
pub location: Option<String>,
pub theme: Option<String>,
pub website: Option<String>,
}
Expand description
UserSettings : UserSettings represents user settings
Fields§
§description: Option<String>
§diff_view_style: Option<String>
§full_name: Option<String>
§hide_activity: Option<bool>
§hide_email: Option<bool>
Privacy
language: Option<String>
§location: Option<String>
§theme: Option<String>
§website: Option<String>
Implementations§
Source§impl UserSettings
impl UserSettings
Sourcepub fn new() -> UserSettings
pub fn new() -> UserSettings
UserSettings represents user settings
Trait Implementations§
Source§impl Clone for UserSettings
impl Clone for UserSettings
Source§fn clone(&self) -> UserSettings
fn clone(&self) -> UserSettings
Returns a copy of the value. Read more
1.0.0 · 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
Source§impl PartialEq for UserSettings
impl PartialEq for UserSettings
Source§impl Serialize for UserSettings
impl Serialize for UserSettings
impl StructuralPartialEq for UserSettings
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