Skip to main content

check_max_length

Function check_max_length 

Source
pub fn check_max_length(
    name: &str,
    limit: usize,
    kind: &str,
    source: Option<Source>,
) -> Result<(), Error>
Expand description

Validate that a name does not exceed the given character limit. kind is a human-readable noun like “spec”, “fact”, “rule”, or “type”.