neon_arch
commited on
Commit
•
7b33744
1
Parent(s):
e4476aa
⚙️ refactor: implement default trait for Style struct (#180)(#178)
Browse files
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,
|