Function corn::from_slice
source · pub fn from_slice<T>(bytes: &[u8]) -> Result<T>where
T: DeserializeOwned,
Expand description
Attempts to deserialize the config from a byte slice.
Errors
Will return a DeserializationError
if the config is invalid.