Start to check device relay information

This commit is contained in:
2024-07-31 23:33:58 +02:00
parent 5497c36c75
commit 48a2f728de
2 changed files with 118 additions and 2 deletions

View File

@ -36,6 +36,10 @@ impl SizeConstraint {
let len = val.trim().len();
len >= self.min && len <= self.max
}
pub fn validate_usize(&self, val: usize) -> bool {
val >= self.min && val <= self.max
}
}
/// Backend static constraints