Spaces:
Running
Running
neon_arch
commited on
Commit
·
686e26a
1
Parent(s):
5c60d73
⚰️ chore: remove the serialize & deserialize traits on the struct (#302)
Browse files
src/models/parser_models.rs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 1 |
//! This module provides public models for handling, storing and serializing parsed config file
|
| 2 |
//! options from config.lua by grouping them together.
|
| 3 |
|
| 4 |
-
use serde::{Deserialize, Serialize};
|
| 5 |
-
|
| 6 |
/// A named struct which stores,deserializes, serializes and groups the parsed config file options
|
| 7 |
/// of theme and colorscheme names into the Style struct which derives the `Clone`, `Serialize`
|
| 8 |
/// and Deserialize traits where the `Clone` trait is derived for allowing the struct to be
|
|
@@ -12,7 +10,7 @@ use serde::{Deserialize, Serialize};
|
|
| 12 |
/// order to allow the deserializing the json back to struct in aggregate function in
|
| 13 |
/// aggregator.rs and create a new struct out of it and then serialize it back to json and pass
|
| 14 |
/// it to the template files.
|
| 15 |
-
#[derive(
|
| 16 |
pub struct Style {
|
| 17 |
/// It stores the parsed theme option used to set a theme for the website.
|
| 18 |
pub theme: String,
|
|
|
|
| 1 |
//! This module provides public models for handling, storing and serializing parsed config file
|
| 2 |
//! options from config.lua by grouping them together.
|
| 3 |
|
|
|
|
|
|
|
| 4 |
/// A named struct which stores,deserializes, serializes and groups the parsed config file options
|
| 5 |
/// of theme and colorscheme names into the Style struct which derives the `Clone`, `Serialize`
|
| 6 |
/// and Deserialize traits where the `Clone` trait is derived for allowing the struct to be
|
|
|
|
| 10 |
/// order to allow the deserializing the json back to struct in aggregate function in
|
| 11 |
/// aggregator.rs and create a new struct out of it and then serialize it back to json and pass
|
| 12 |
/// it to the template files.
|
| 13 |
+
#[derive(Clone, Default)]
|
| 14 |
pub struct Style {
|
| 15 |
/// It stores the parsed theme option used to set a theme for the website.
|
| 16 |
pub theme: String,
|