neon_arch commited on
Commit
1c5a317
1 Parent(s): 6268291

✨ feat: add a new field `animation` to the struct `style` (#424)

Browse files
Files changed (1) hide show
  1. src/models/parser_models.rs +9 -2
src/models/parser_models.rs CHANGED
@@ -17,6 +17,9 @@ pub struct Style {
17
  /// It stores the parsed colorscheme option used to set a colorscheme for the
18
  /// theme being used.
19
  pub colorscheme: String,
 
 
 
20
  }
21
 
22
  impl Style {
@@ -27,8 +30,12 @@ impl Style {
27
  /// * `theme` - It takes the parsed theme option used to set a theme for the website.
28
  /// * `colorscheme` - It takes the parsed colorscheme option used to set a colorscheme
29
  /// for the theme being used.
30
- pub fn new(theme: String, colorscheme: String) -> Self {
31
- Style { theme, colorscheme }
 
 
 
 
32
  }
33
  }
34
 
 
17
  /// It stores the parsed colorscheme option used to set a colorscheme for the
18
  /// theme being used.
19
  pub colorscheme: String,
20
+ /// It stores the parsed animation option used to set an animation for the
21
+ /// theme being used.
22
+ pub animation: Option<String>,
23
  }
24
 
25
  impl Style {
 
30
  /// * `theme` - It takes the parsed theme option used to set a theme for the website.
31
  /// * `colorscheme` - It takes the parsed colorscheme option used to set a colorscheme
32
  /// for the theme being used.
33
+ pub fn new(theme: String, colorscheme: String, animation: Option<String>) -> Self {
34
+ Style {
35
+ theme,
36
+ colorscheme,
37
+ animation,
38
+ }
39
  }
40
  }
41