neon_arch commited on
Commit
f4c496c
1 Parent(s): cbad560

✨ feat: implement default trait for style struct (#201)

Browse files
Files changed (1) hide show
  1. src/config/parser_models.rs +1 -1
src/config/parser_models.rs CHANGED
@@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize};
18
  /// * `theme` - It stores the parsed theme option used to set a theme for the website.
19
  /// * `colorscheme` - It stores the parsed colorscheme option used to set a colorscheme for the
20
  /// theme being used.
21
- #[derive(Serialize, Deserialize, Clone)]
22
  pub struct Style {
23
  pub theme: String,
24
  pub colorscheme: String,
 
18
  /// * `theme` - It stores the parsed theme option used to set a theme for the website.
19
  /// * `colorscheme` - It stores the parsed colorscheme option used to set a colorscheme for the
20
  /// theme being used.
21
+ #[derive(Serialize, Deserialize, Clone, Default)]
22
  pub struct Style {
23
  pub theme: String,
24
  pub colorscheme: String,