pub fn value_to_bytes(val: &Value) -> Result<Vec<u8>, String>
Extract bytes from a ByteSlice, Bytes, or String value.
ByteSlice
Bytes
String