Skip to main content

capitalize_first

Function capitalize_first 

Source
pub fn capitalize_first(s: &str) -> String
Expand description

Capitalize the first character of a snake_case field name.

Used by define_operation_with_response! to derive the UPnP element name for single-word request arguments (channel -> Channel).