pub struct UserSettings {
pub display_name: String,
pub biography: String,
pub links: Vec<(String, String)>,
pub contacts: Vec<(String, String)>,
pub profile_theme: ThemePreference,
}Fields§
§display_name: String§biography: String§links: Vec<(String, String)>External links for the user’s other profiles on other websites.
contacts: Vec<(String, String)>The user’s contacts.
profile_theme: ThemePreferenceThe user’s theme used on their profile.
Implementations§
Source§impl UserSettings
impl UserSettings
pub fn verify_values(&self) -> Result<()>
Trait 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 · 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 Serialize for UserSettings
impl Serialize 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
Source§impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
Source§fn from_json_value(value: Value) -> Result<T, Error<Error>>
fn from_json_value(value: Value) -> Result<T, Error<Error>>
Convert from
serde_json::Value. Read moreSource§impl<T> FromTomlReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromTomlReader for Twhere
T: DeserializeOwned + Validate,
Source§impl<'de, T> FromTomlSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromTomlSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<'de, T> FromTomlStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromTomlStr<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<T> FromTomlValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromTomlValue for Twhere
T: DeserializeOwned + Validate,
Source§fn from_toml_value(value: Value) -> Result<T, Error<Error>>
fn from_toml_value(value: Value) -> Result<T, Error<Error>>
Convert from
serde_toml::Value. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more