pub struct PlayerSettings {
pub time_limit: Option<u32>,
pub pairs_to_display: Option<u32>,
}
Expand description
Player settings
Fields§
§time_limit: Option<u32>
time limit in minutes
pairs_to_display: Option<u32>
amount of pairs to render
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§fn default() -> PlayerSettings
fn default() -> PlayerSettings
Returns the “default value” for a type. Read more
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