From 43245624b1bf90d50062f0417c58bffe4064c8eb Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 20 Jun 2024 08:25:38 +0900 Subject: [PATCH] add pinned links to client config --- src/config/client.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/config/client.rs b/src/config/client.rs index 223f04c..f572630 100644 --- a/src/config/client.rs +++ b/src/config/client.rs @@ -22,6 +22,14 @@ pub struct Config { background_image: Option, #[validate(custom(function = "is_color_code"))] theme_color: Option, + pinned_links: Vec, +} + +#[derive(Deserialize, Serialize, Validate, Debug)] +pub struct WebSite { + name: String, + #[validate(url)] + url: String, } fn is_color_code(color_code: &str) -> Result<(), ValidationError> {