Struct dim_database::user::UserSettings
source · pub struct UserSettings {
pub default_video_quality: DefaultVideoQuality,
/* private fields */
}
Fields§
§default_video_quality: DefaultVideoQuality
Represents the default video quality for user.
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<'r, DB: Database> Decode<'r, DB> for UserSettingswhere
&'r [u8]: Decode<'r, DB>,
impl<'r, DB: Database> Decode<'r, DB> for UserSettingswhere
&'r [u8]: Decode<'r, DB>,
source§impl Default for UserSettings
impl Default for UserSettings
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<'q, DB: Database> Encode<'q, DB> for UserSettingswhere
Vec<u8>: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for UserSettingswhere
Vec<u8>: Encode<'q, DB>,
source§fn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.