pub struct Theme {
pub name: String,
pub background: String,
pub grid_background: String,
pub tile_colors: Vec<String>,
pub text_color: String,
pub title_color: String,
pub score_color: String,
pub best_score_color: String,
pub moves_color: String,
pub time_color: String,
}Expand description
Color theme for the game
Fields§
§name: String§background: String§grid_background: String§tile_colors: Vec<String>§text_color: String§title_color: String§score_color: String§best_score_color: String§moves_color: String§time_color: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
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 Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
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