I'm trying to invoke an AWS Lambda function using the Rusoto library. The request has a JSON-encoded payload which I currently have as a String, but the library insists on a bytes::bytes::Bytes struct for this. I haven't been able to find a way to convert the String to the Bytes (not the most googleable thing in the world) - can anyone help me out? Thanks.
expected struct `bytes::bytes::Bytes`, found struct `std::string::String`