pub fn from_reader<R, T>(reader: R) -> Result<T, Error>where
R: Read,
T: DeserializeOwned,Expand description
Deserializes exactly one owned YAML document from a reader.
ยงErrors
Returns an error when reading fails, the YAML is invalid, or the document
cannot be deserialized as T.