Can create a movement

This commit is contained in:
2025-04-15 22:39:42 +02:00
parent 5a51dee8b0
commit b4cf6624f7
9 changed files with 160 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ pub struct ServerConstraints {
pub token_ip_net: LenConstraints,
pub token_max_inactivity: LenConstraints,
pub account_name: LenConstraints,
pub movement_label: LenConstraints,
}
impl Default for ServerConstraints {
@@ -50,6 +51,7 @@ impl Default for ServerConstraints {
token_ip_net: LenConstraints::max_only(44),
token_max_inactivity: LenConstraints::new(3600, 3600 * 24 * 365),
account_name: LenConstraints::not_empty(50),
movement_label: LenConstraints::not_empty(200),
}
}
}