#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, Hash, Validate, ToSchema)]
#[serde(transparent)]
pub struct Username(
#[validate(custom(function = "validate_username"))]
#[schema(
min_length = 3,
max_length = 32,
pattern = r"^[a-zA-Z0-9][a-zA-Z0-9_-]{1,30}[a-zA-Z0-9]$",
example = "username"
)]
String,
);
unexpected attribute: min_length, expected any of: inline
min-length is not supported on tuple value?