Skip to main content

validate_value

Function validate_value 

Source
pub fn validate_value(tag: &str, value: &str) -> Result<(), String>
Expand description

Validates one value against the rule set tag names.

ยงErrors

Returns the human-readable reason the value was refused, phrased so it can be shown next to the field as-is. An empty room name is valid (the server autogenerates one); an empty player name is not.