String vs &str (Rust)

String is an owned, growable, heap-allocated UTF-8 string; &str is a borrowed, fixed view into string data.