pub fn capitalize_first<S>(word: S) -> String
where
    S: Into<String>,
{
    let s = word.into();
    let mut chars = s.chars();
    match chars.next() {
        Some(c) => c.to_uppercase().collect::<String>() + chars.as_str(),
        None => String::new(),
    }
}
Capitalize the first character in the given string.
If the input string is empty an empty string is returned.
service_crategen/src/util.rs