]> saetta.ns0.it Git - rust/zakform/commitdiff
Exported Validator struct.
authorAndrea Zagli <azagli@libero.it>
Sun, 21 Jan 2024 08:54:48 +0000 (09:54 +0100)
committerAndrea Zagli <azagli@libero.it>
Sun, 21 Jan 2024 08:54:48 +0000 (09:54 +0100)
src/validators.rs

index 1400911ea5b929b65f58f476261c3102a098d2cc..b06ffae008f382148ceab8c152205ddb4b20a8bf 100644 (file)
@@ -5,9 +5,9 @@ use regex::Regex;
 use chrono::NaiveDate;
 
 #[derive(Default)]
-struct Validator {
-       name: String,
-       message: String,
+pub struct Validator {
+       pub name: String,
+       pub message: String,
 }
 
 pub trait TValidator {