Skip to main content

from_value

Function from_value 

Source
pub fn from_value<T>(value: Value) -> Result<T>
Expand description

A convenience function for deserializing a value of type T from a Value.

Unlike the other convenience functions this returns a plain Error rather than a SpannedError, since an in-memory Value has no source text to point a span into.