pub struct PlayerSettings {
pub n_choices: u8,
pub swap: bool,
pub n_rounds: u32,
pub time_limit: Option<u32>,
}
Expand description
Player settings
Fields§
§n_choices: u8
number of choices
swap: bool
swap the display to be primary left vs. right
n_rounds: u32
number of rounds to play
time_limit: Option<u32>
time limit in minutes
Trait Implementations§
Source§impl Clone for PlayerSettings
impl Clone for PlayerSettings
Source§fn clone(&self) -> PlayerSettings
fn clone(&self) -> PlayerSettings
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 PlayerSettings
impl Debug for PlayerSettings
Source§impl Default for PlayerSettings
impl Default for PlayerSettings
Source§impl<'de> Deserialize<'de> for PlayerSettings
impl<'de> Deserialize<'de> for PlayerSettings
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 PlayerSettings
impl RefUnwindSafe for PlayerSettings
impl Send for PlayerSettings
impl Sync for PlayerSettings
impl Unpin for PlayerSettings
impl UnwindSafe for PlayerSettings
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