pub struct UserSettings {
pub diff_view_style: String,
pub hide_activity: bool,
pub full_name: String,
pub hide_email: bool,
pub theme: String,
pub enable_repo_unit_hints: Option<bool>,
pub description: Option<String>,
pub language: Option<String>,
pub location: Option<String>,
pub pronouns: Option<String>,
pub website: Option<String>,
}
Expand description
Represents a user’s settings.
Fields§
§diff_view_style: String
§hide_activity: bool
§full_name: String
§hide_email: bool
§theme: String
§enable_repo_unit_hints: Option<bool>
§description: Option<String>
§language: Option<String>
§location: Option<String>
§pronouns: Option<String>
§website: Option<String>
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
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