If it's not an owned string that you need, but simply a borrowed type that's a wrapper around a C style string in memory, you could use https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html which is the non-owning counterpart to CString
It can be constructed through various methods, it's not marked as transparent though so wouldn't try directly transmuting, but you can use the from_ptr method to make one
Representation of a borrowed C string.