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> {