shared/domain/module/body/drag_drop/
play_settings.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use serde::{Deserialize, Serialize};

/// Play settings
#[derive(Clone, Default, Serialize, Deserialize, Debug)]
pub struct PlaySettings {
    /// time limit in minutes
    pub time_limit: Option<u32>,

    /// hint style
    pub hint: Hint,
}

/// Hint
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq)]
pub enum Hint {
    /// None
    None,

    /// Highlight
    Highlight,
}

impl Default for Hint {
    fn default() -> Self {
        Self::None
    }
}