diff --git a/src/models/parser_models.rs b/src/models/parser_models.rs index a669bd6..75a4c13 100644 --- a/src/models/parser_models.rs +++ b/src/models/parser_models.rs @@ -17,6 +17,9 @@ pub struct Style { /// It stores the parsed colorscheme option used to set a colorscheme for the /// theme being used. pub colorscheme: String, + /// It stores the parsed animation option used to set an animation for the + /// theme being used. + pub animation: Option, } impl Style { @@ -27,8 +30,12 @@ impl Style { /// * `theme` - It takes the parsed theme option used to set a theme for the website. /// * `colorscheme` - It takes the parsed colorscheme option used to set a colorscheme /// for the theme being used. - pub fn new(theme: String, colorscheme: String) -> Self { - Style { theme, colorscheme } + pub fn new(theme: String, colorscheme: String, animation: Option) -> Self { + Style { + theme, + colorscheme, + animation, + } } }