Skip to main content

from_str

Function from_str 

Source
pub fn from_str<T: DeserializeOwned>(
    text: &str,
    strict_booleans: bool,
) -> Result<T, String>
Expand description

Parses YAML text into T through to_value. An error reads path (line L, column C): message, or just the message for a syntax error (which carries its own location).

ยงErrors

The syntax or deserialization error as text.