From 1c5a317c4dd76091ffcf427fc05bc0d3b75993ff Mon Sep 17 00:00:00 2001 From: neon_arch Date: Mon, 11 Dec 2023 12:27:29 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20a=20new=20field=20`an?= =?UTF-8?q?imation`=20to=20the=20struct=20`style`=20(#424)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/parser_models.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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, + } } }