pub fn fixed_length_string(value: String, length: usize) -> Result<String>
Expand description

Return a padded string up to the specified length. If the specified string value is longer than the allowed length, return an error.