Function from_slice

Source
pub fn from_slice<T>(bytes: &[u8]) -> Result<T>
Expand description

Attempts to deserialize the config from a byte slice.

ยงErrors

Will return a DeserializationError if the config is invalid.