Update code for validator 0.19.0
This commit is contained in:
parent
40429b7ed4
commit
4dc8155712
2 changed files with 4 additions and 4 deletions
|
@ -87,14 +87,14 @@ pub struct Key {
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
source: KeySource,
|
source: KeySource,
|
||||||
|
|
||||||
#[validate(custom = "validate_dest_dir")]
|
#[validate(custom(function = "validate_dest_dir"))]
|
||||||
#[serde(rename = "destDir")]
|
#[serde(rename = "destDir")]
|
||||||
dest_dir: PathBuf,
|
dest_dir: PathBuf,
|
||||||
|
|
||||||
#[validate(custom = "validate_unix_name")]
|
#[validate(custom(function = "validate_unix_name"))]
|
||||||
user: String,
|
user: String,
|
||||||
|
|
||||||
#[validate(custom = "validate_unix_name")]
|
#[validate(custom(function = "validate_unix_name"))]
|
||||||
group: String,
|
group: String,
|
||||||
|
|
||||||
permissions: String,
|
permissions: String,
|
||||||
|
|
|
@ -81,7 +81,7 @@ pub struct NodeConfig {
|
||||||
#[serde(rename = "sshOptions")]
|
#[serde(rename = "sshOptions")]
|
||||||
extra_ssh_options: Vec<String>,
|
extra_ssh_options: Vec<String>,
|
||||||
|
|
||||||
#[validate(custom = "validate_keys")]
|
#[validate(custom(function = "validate_keys"))]
|
||||||
keys: HashMap<String, Key>,
|
keys: HashMap<String, Key>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue