Function bt_bencode::from_value
source · [−]pub fn from_value<T>(value: Value) -> Result<T, Error> where
T: DeserializeOwned, Expand description
Deserializes an instance of T from a Value.
Errors
Deserialization can fail if the data is not valid, if the data cannot cannot be deserialized
into an instance of T, and other IO errors.