add pinned links to client config
This commit is contained in:
parent
c734380cfe
commit
43245624b1
1 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,14 @@ pub struct Config {
|
|||
background_image: Option<String>,
|
||||
#[validate(custom(function = "is_color_code"))]
|
||||
theme_color: Option<String>,
|
||||
pinned_links: Vec<WebSite>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Validate, Debug)]
|
||||
pub struct WebSite {
|
||||
name: String,
|
||||
#[validate(url)]
|
||||
url: String,
|
||||
}
|
||||
|
||||
fn is_color_code(color_code: &str) -> Result<(), ValidationError> {
|
||||
|
|
Loading…
Reference in a new issue