Skip to main content

from_value

Function from_value 

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

Converts a generic YAML Value into a typed value.

ยงErrors

Returns an error when the value does not match T.