Skip to main content

from_slice

Function from_slice 

Source
pub fn from_slice<T: DeserializeOwned + 'static>(
    input: &[u8],
) -> Result<T, Error>
Expand description

ยงErrors

Returns an error if the input is not valid JSON or cannot be deserialized into the requested type.