How to Convert a &str to a String in Rust
Rust has two main string types. &str is a borrowed view of text, such as a string literal, and String is text your code owns. When a variable, a struct field or a function needs a String, convert the &str with to_owned(), to_string() or String::from().
