[][src]Struct licoricedev::models::user::UserPreferences

pub struct UserPreferences {
    pub dark: bool,
    pub transp: bool,
    pub bg_img: String,
    pub is_3d: bool,
    pub theme: String,
    pub piece_set: String,
    pub theme_3d: String,
    pub piece_set_3d: String,
    pub sound_set: String,
    pub blindfold: u8,
    pub auto_queen: u8,
    pub auto_threefold: u8,
    pub takeback: u8,
    pub moretime: u8,
    pub clock_tenths: u8,
    pub clock_bar: bool,
    pub clock_sound: bool,
    pub premove: bool,
    pub animation: u8,
    pub captured: bool,
    pub follow: bool,
    pub highlight: bool,
    pub destination: bool,
    pub coords: u8,
    pub replay: u8,
    pub challenge: u8,
    pub message: u8,
    pub coord_color: u8,
    pub submit_move: u8,
    pub confirm_resign: u8,
    pub insight_share: u8,
    pub keyboard_move: u8,
    pub zen: u8,
    pub move_event: u8,
    pub rook_castle: u8,
}

Settings of users in non-human-readable(mostly) form

Fields

dark: booltransp: boolbg_img: Stringis_3d: booltheme: Stringpiece_set: Stringtheme_3d: Stringpiece_set_3d: Stringsound_set: Stringblindfold: u8auto_queen: u8auto_threefold: u8takeback: u8moretime: u8clock_tenths: u8clock_bar: boolclock_sound: boolpremove: boolanimation: u8captured: boolfollow: boolhighlight: booldestination: boolcoords: u8replay: u8challenge: u8message: u8coord_color: u8submit_move: u8confirm_resign: u8insight_share: u8keyboard_move: u8zen: u8move_event: u8rook_castle: u8

Trait Implementations

impl Clone for UserPreferences[src]

impl Debug for UserPreferences[src]

impl<'de> Deserialize<'de> for UserPreferences[src]

impl Serialize for UserPreferences[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.