This commit is contained in:
naskya 2024-06-21 11:24:51 +09:00
parent d628550abc
commit 924cfcf22c
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 4 additions and 4 deletions

View file

@ -5,13 +5,13 @@
// Optional values are handled in the main Firefish program, and this tool
// does not take care of it.
use super::Revision;
use super::{ensure_latest_revision, Revision};
use serde::{Deserialize, Serialize};
use validator::{Validate, ValidationError};
#[derive(Deserialize, Serialize, Validate, Debug)]
pub struct Config {
#[validate(custom(function = "super::ensure_latest_revision"))]
#[validate(custom(function = "ensure_latest_revision"))]
pub config_revision: Revision,
#[validate(nested)]
pub theme: Option<Theme>,

View file

@ -5,13 +5,13 @@
// Optional values are handled in the main Firefish program, and this tool
// does not take care of it.
use super::Revision;
use super::{ensure_latest_revision, Revision};
use serde::{Deserialize, Serialize};
use validator::Validate;
#[derive(Deserialize, Serialize, Validate, Debug)]
pub struct Config {
#[validate(custom(function = "super::ensure_latest_revision"))]
#[validate(custom(function = "ensure_latest_revision"))]
pub config_revision: Revision,
#[validate(nested)]
pub info: Option<Info>,