Skip to main content

value_to_bytes

Function value_to_bytes 

Source
pub fn value_to_bytes(val: &Value) -> Result<Vec<u8>, String>
Expand description

Extract bytes from a ByteSlice, Bytes, or String value.