If you are not sure how to convert various type like String, str, Vec<u8> or Ves<char>, you can use that very useful piece of code reference made by Jimmy Chu :
Strong conversion code Repo here : string-conversion.rs