Rust

Strings of bounded length, and identifiers.

Contents

use utopia_validators::Identifier;
Rust
pub struct Identifier

An identifier: ASCII letters, digits and underscores, not starting with a digit, of at most length characters (0 for no limit).

use utopia_validators::Text;
Rust
pub struct Text

A string of min to length characters (length 0 is unlimited), optionally made only of the characters in allow_list, and optionally not blank.