In C++, the equivalent of Rust's String is a std::string. This is a dynamically-allocated string type that is stored on the heap, and provides a number of methods for manipulating its contents. The equivalent of Rust's &str is a C-style string, or a char* in C++. This is a null-terminated string of characters stored in memory, and is used for string data that does not need to be modified. When working with C-style strings, it is important to keep in mind that they do not have automatic memory management like std::string, and it is up to the programmer to allocate and free the memory used by these strings.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence